Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login button does nothing - Port conflict #12

Closed
Losqe opened this issue Aug 28, 2023 · 7 comments
Closed

Login button does nothing - Port conflict #12

Losqe opened this issue Aug 28, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@Losqe
Copy link

Losqe commented Aug 28, 2023

When I click on log in in blender nothing happens, it says logging in but only while my cursor is over log in button and nothing else happens.

@Nightriff
Copy link
Collaborator

Nightriff commented Aug 28, 2023

Expected behavior here is that your default browser launches with a login page. Can you confirm that no tab is opened in your browser?

If there is no tab, can you check for errors in Blender's system console?

On Windows, you can open this from Window > Toggle System Console
On Mac, you need to restart blender from the terminal; Open Terminal, type blender, and hit return. Then, the output should go to that terminal once you reproduce the issue again.

As for it only showing after you mouse over the button, this is because mousing over the button triggers a redraw. There are some issues where the state updates but the panel doesn't get redrawn until something triggers it. This may or may not be a limitation of Blender, further investigation is required.

@Nightriff Nightriff added the bug Something isn't working label Aug 28, 2023
@t3xellz
Copy link

t3xellz commented Aug 29, 2023

I cant log in it says this Internal client error.
No module named 'pyjwt_key_fetcher'

@Losqe
Copy link
Author

Losqe commented Aug 29, 2023

Thank you for your reply!
I tried to log in without having my browser opened and it still didnt work. Here is what i got on console:

Read prefs: "C:\Users\PC\AppData\Roaming\Blender Foundation\Blender\3.6\config\userpref.blend"
Traceback (most recent call last):
File "C:\Users\PC\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\roblox-blender-plugin-main\lib\oauth2_login_operators.py", line 69, in on_login_complete
task.result()
File "C:\Users\PC\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\roblox-blender-plugin-main\lib\oauth2_client.py", line 178, in login
await site.start()
File "C:\Users\PC\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\roblox-blender-plugin-main\dependencies_public\aiohttp\web_runner.py", line 121, in start
self._server = await loop.create_server(
File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\python\lib\asyncio\base_events.py", line 1519, in create_server
raise OSError(err.errno, 'error while attempting '
PermissionError: [Errno 13] error while attempting to bind on address ('127.0.0.1', 8080): an attempt was made to access a socket in a way forbidden by its access permissions

Thank you for your reply once again!

@Nightriff
Copy link
Collaborator

Nightriff commented Aug 29, 2023

@t3xellz Thanks for the report, I'll respond on the issue you opened about it since it seems like a different issue to this one

@Nightriff
Copy link
Collaborator

@Losqe Aha, this is probably a port conflict with another application running on your computer. To avoid such conflicts, we plan to change the plugin's port to something less common (port 8080 is a default port for web servers). We also intend to add better error handling to show a user-facing error message in case of login errors.

For now, you can try to stop whatever process is tying up your port 8080 by opening command prompt on windows, entering netstat -ao, and finding the PID (Process ID) corresponding to the Local Address that lists :8080 as the port.

Then, match this PID to the process name to figure out which process is holding it open. You can do this by entering the command

tasklist /fi "pid eq 1234"

where 1234 should be replaced with with the PID you found.

Alternatively, you can open Task Manager (Right click Windows icon, Task Manager), make sure you're in Advanced mode, go to Details page, click the PID column header to sort by process ID, and find the one matching the one you found from the netstat command. This will show its process name and, if you so choose, let you end the process.

@Nightriff Nightriff changed the title Can't login Login button does nothing - Port conflict Aug 29, 2023
@Losqe
Copy link
Author

Losqe commented Aug 29, 2023

I got list of all PIDs with command prompt and went over them, but I couldn't find 8080. I tried to find it using other method and it doesn't show up. Here is picture what I got:

Capture

Thank you for your time!

@Nightriff
Copy link
Collaborator

The port change is now live in v1.0.1. Closing this as resolved now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants