Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

Options

C# OAuth sample stopped working

Michał_WójcikMichał_Wójcik Member Posts: 13
I'm trying to run the sample at https://github.com/onshape-public/app-windows-sample and all I'm getting when I run it is an authentication error. I've set my project up on the developer portal and supplied the environment variables as described in the readme, and this is what happens after I run the sample:



I had a colleague try it to confirm it's not just me, he's having the same issue. Is there a solution? Did the API change to the point of this sample being obsolete?

Answers

  • Options
    Michał_WójcikMichał_Wójcik Member Posts: 13
    Forgot to mention, the browser does not open to go through the authentication process. It just spits out the error end quits. After some debugging i saw it gets the refresh token from somewhere, even though I have not logged in yet, and then tries to get an access token, failing. Thus the exception. Then again, why is it 503 and not 401 or 403? 5xx errors indicate serverside problems. 503 in particular means "Service Unavailable".
Sign In or Register to comment.