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

Sanic 'request.url' can be invalid #799

Open
jacebrowning opened this issue Apr 1, 2023 · 1 comment
Open

Sanic 'request.url' can be invalid #799

jacebrowning opened this issue Apr 1, 2023 · 1 comment

Comments

@jacebrowning
Copy link
Owner

jacebrowning commented Apr 1, 2023

See the workaround added here: https://github.com/jacebrowning/memegen/pull/798/files

I believe this is caused by SERVER_NAME being a URL rather than just hostname, but without that the Swagger UI fails to load in production.

@BreadBreadington
Copy link

Is this related to the 500 statuscode I get from certain URLs?

For example if I try to use this image with the API, it generates the link fine but the link itself returns error 500
URL: https://cdn.discordapp.com/attachments/222559742831099905/290813528917671938/tumblr_mhetw0c1Hq1r4xfc2o1_500.png

Memegen out: https://api.memegen.link/images/custom/string/a.png?background=https://cdn.discordapp.com/attachments/222559742831099905/290813528917671938/tumblr_mhetw0c1Hq1r4xfc2o1_500.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants