Roblox / roblox-blender-plugin

A Blender plugin to upload selected assets in Blender to Roblox using Roblox's Open Cloud API.
MIT License
113 stars 24 forks source link

Can't log into plugin: Login request failed. 401 Authorization code may not be used from this device #41

Closed devtaharbx closed 6 months ago

devtaharbx commented 7 months ago

Error: Login request failed. 401, message='Authorization code may not be used from this device', url=URL('https://apis.roblox.com/oauth/v1/token')

I am getting this message after completing the account linking process. Please let me know how to fix this I have been trying for 2 days

Nightriff commented 7 months ago

Sorry you're having trouble logging in! This error comes from the Open Cloud OAuth2 login endpoint, and can occur if your IP address changes during the login process.

(Specifically, if your IP address changes between when the server returns an authorization code and when the plugin tries to exchange it for an access token. The server is validating that the request to exchange the auth code for an access token is coming from the same IP address as the original request for the auth code in order to protect against a man-in-the-middle attack where someone sniffs your auth code from the response and tries to exchange it from their own device, giving them access to your oauth session tokens.)

I have experienced this error when I tried to log in at an airport, for example, and was able to resolve it by switching to my phone's hotspot instead of using the public wifi. You may also try using (or turning off, if already using) a VPN.

If you would share, are there any unusual circumstances with your wifi connection? Collecting info on the types of practical situations where this error comes up may help diagnose the cause for anyone else experiencing the same problem.

Also please comment if switching to a different wifi connection and turning on or off a VPN resolves the issue for you.

devtaharbx commented 7 months ago

Wow i changed wifi to a different one and it worked but there is one thing. when I texture paint my object and upload, it doesnt update. I have auto update on. Only the change i make to the mesh are only uploaded but the texture is not loading. Do you know why?

Nightriff commented 6 months ago

Please open another issue for the texturing issues unrelated to logging in. Thanks!