Skip to content

502 Bad Gateway problem contacting production server #128

@katestange

Description

@katestange

The URL https://numberscope.colorado.edu/api/get_oeis_factors/A006769/1000 on the production server currently produces 502 Bad Gateway. On a local copy of the current backscope, the URL works fine.

Strangely, the following URLs seem to work fine:

https://numberscope.colorado.edu/api/get_oeis_factors/A006707/1000
https://numberscope.colorado.edu/api/get_oeis_values/A006769/1000

Below is how I discovered this, but probably everything relevant is shown above.

In the current up-to-date frontscope/main, when I run with a local backscope, all is fine. When I run without my own .env.local so it should contact the numberscope server, and I click "Create Bundle" then I get the following in the console:

Access to XMLHttpRequest at 'https://numberscope.colorado.edu/api/get_oeis_factors/A006769/1000' from origin 'http://localhost:5173' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Fronstcope also pops up an error dialog with AxiosError: Network Error. If you try the URL above directly, you get 502 Bad Gateway.

To reproduce, call sequence A006769, then choose "Factor Histogram" and create bundle. It appears that for this sequence, only visualizers which wish to call for factors are affected. OTOH, some other sequences seem to work just fine. So it's a very specific bug and maybe it has to do with the state of the database on the backend? But why would that return Bad Gateway? Really kind of weird.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions