question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

404 when query params have periods in them.

See original GitHub issue

I’m getting some strange behavior when I hit a URL with a period in a query value.

Example: https://my-fake-site/login?callback=asfasdf.asdf I get a 404

When I hit just https://my-fake-site/login?callback=asfasdf it’s golden…

For context, I’m working with a SPA

Originally I ran: ws --spa index.html Then I thought the URL was being interpreted as a static file due to the period. So I added the --spa.asset-test-fs flag.

Making the final command ws --spa index.html --spa.asset-test-fs Which still doesn’t work

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
75lbcommented, Jul 1, 2019

https://github.com/lwsjs/spa/issues/3 is now fixed. If you reinstall, the fullstop in your querystring won’t break the default asset-test, meaning you won’t need the --spa.asset-test-fs flag.

0reactions
75lbcommented, Jul 1, 2019

no problem, let me know if you find anything else.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Periods in queryParams with the new matrix URL notation ...
returns a 404 before angular even handles it, because it most likely parses periods first for domain resolution (in the absence of ?...
Read more >
Getting a 404 error with parameters which contain periods ...
Try using ajax post method $.ajax({ url: url+ + "/", type: 'POST', data: {data1:encodeURIComponent(text1),data2:encodeURIComponent(text2)}, ...
Read more >
Why does a query string return a 404 error? - Drupal Answers
This question was caused by a problem that can no longer be reproduced, was solved by a cache clear, or was a simple...
Read more >
bizarre 404 on nginx - Server Fault
The period here does not mean only a period - it means any character. Thus it matches rico of puerto-rico . To match...
Read more >
HTTP API Errors - commercetools documentation
If a query constantly times out, please check if it follows the performance best practices. code ​. String​. "QueryTimedOut".
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found