-
Notifications
You must be signed in to change notification settings - Fork 51
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
500 Internal Server Error when requesting tiles from within docker container #103
Comments
@robintw maybe try setting the JupyterLab log level to INFO or DEBUG in the log console in the UI? Lines 849 to 851 in d3a78c4
Sometimes this gets error messages to show up for me. If this doesn't work for you, I'll add something to the code. I've found it very annoyingly hard to get logs out. |
I tried setting the log level, and it didn't get me any useful information. Interestingly, I now don't seem to be getting 500 errors - I'm not sure what the difference is, but I'm getting 200 responses instead, but the tiles seem to be blank. I think I've worked out what's going on though. Looking in developer tools, the URL that it's trying to get for a tile is:
This seems to be putting the
(by removing and view that in my browser, then I see a correct tile, with the right data showing. So, it looks like there is some sort of bug in the code that generates the tile URLs. I'll have a look through the code later to see if I can spot where the problem is, but I thought I'd post this here now in case the fix was really simple for someone with more knowledge of the code base. |
@robintw the code you're probably looking for is Lines 628 to 634 in d3a78c4
When you're on on JupyterLab, what's the URL in browser? |
Ok, I really don't understand this - it's started working fine now! I've run it multiple times, and restarted the docker container, and it all 'just works'. For reference, the URL in my browser was I've no idea what was going on, but I'll close this for now and re-open in future if it re-occurs. |
The incorrect URLs makes me think of something else. The way we figure out the base JupyterLab URL is extremely hacky. AFAICT there's no way from the Python side to get the current URL for Jupyter, as much as I've dug through Jupyter internals. So instead we use ipyleaflet's Lines 579 to 589 in d3a78c4
But if you see these issues again, I'd be curious to look at m = stackstac.show(...)
m # display it
m.window_url # what's this? |
I've run into this problem again now. I've no idea why it seemed to go away, but it is definitely back now. The tiles that are being requested (according to the Developer Tools) have the URL:
If I edit the URL to remove the The output of
which matches the web browser URL which is the same. I really can't understand why this is happening, when I've tested the regex you're using and it works fine. Any ideas? |
I've worked out what the problem is here. Sometimes I was using a notebook whose path had |
🤦 thanks for digging into it @robintw! That certainly seems like the problem. A PR would be great. |
This is a separate issue to discuss the separate problem I was running into last week (partially discussed in #96 and #97). I am running stackstac.show from within a JupyterLab notebook running in a docker container.
When running show, I can see the checkerboard pattern, but not the data itself. When looking at developer tools, I can see that the tiles for the data itself is giving a 500 error:
Unfortunately, the content of the response is just:
Do you have any suggestions as to how we could debug this further, and get more information out of the server?
The text was updated successfully, but these errors were encountered: