-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Router not working with specific url. #103
Comments
You can try receive the link by query params and passing:
|
@RafaelGSS that is a nicer solution 👍 Anyway, the problem here is the length of the path parameter that is 100 char Here the details: https://github.com/delvedor/find-my-way
|
@Eomm only 100 chars seems odd to me. We should change that default in fastify and a clean error should be logged. |
You can already set it up Maybe to throws an error we should check the routing lib |
Oh thanks. I tried debugging but it tricked me because when I removed the .png it worked so I thought maybe it was the extension and was debugging that for hours lol. |
@Eomm nevermind this only effects the "path" 😄 |
@StarpTech I highly agree. I recommend we open this issue and resolve it accordingly. |
I have this router in my code
I am trying to catch URLs and handle them in the template. The URLs are all encodeURIComponent escaped. for some reason, some URLs would return a 404 not found and I am not sure why.
This is the link that worked.
http://127.0.0.1:3000/https%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fcommons%2Fe%2Fee%2FChain_link_icon.png
and this is the one that didn't work.
http://127.0.0.1:3000/https%3A%2F%2Fs7386.pcdn.co%2Fwp-content%2Fuploads%2F2016%2F07%2Fadd-on-direct-link-tracking-771x386.png
the error is
using windows 10
node v12.8.0
fastify 2.8.0
The text was updated successfully, but these errors were encountered: