Application says 404 not found when I input credentials and try to log in

Good morning

Diool is an app with its own users, and we rely on Auth0 to authenticate these app users through our tenant “myxxxxxxxxx@eu”.

Among these users, we have some of them that are facing a recurrent difficulty to connect to our Diool application with a permanent error message which is as follows on their web browser :

404 NOT FOUND

After inspecting the browser navigation page, here are the exact content of the API call and corresponding response that qlways occur to these users :

  1. API Call Request ==> Post https://auth.diool.com/login?state=hkfo2sbim3jyzetvn0s5cfi2u0hvem54s1fdrfjtwtjsrervakfuwxvxvz2luo3rpznkgm2vjmnxdna4nw5xrzjkc FEUI0RGKJY2LK2SBMN3VMMMMHIUFR1SWLVVKJNDZLPZE8ZSMVLRMLGAWXPRQ & Customer = F7UL2HBPTUIIOOVBGW9IDO3JEEFIFILOE & PROTOCOL = OAUTH2 & REDIRECT_URI = HTTPS%3A Ction = Proddbv2 & Audience = https%3A%2F%2F127.0.0 .1%3A8080%2Fdiool%2Fapi%2Fv1&scope=openid%20email%20profile%20picture%20offline_access&errorPath=%2Fauth-error&ui_locales=fr&response_type=code&response_mode=query&nonce=c1U4MG8uMWFqYW93dGhWR1o5aFo 4WU5%2BVVhTZzhtZS51MGZpLlhqakxnag%3D%3D&code_challenge=W0WiF3LBQ6OCJuw4oJMKiDb9U6o05gDyPSTIw_U4ZhI&code_challenge_method=S256&auth0Client=eyJuYW1lIjoiQGF1dGgwL2F1dG gwLWFuZ3VsYXIiLCJ2ZXJzaW9uIjoiMS4xMC4xIiwiZW52Ijp7ImFuZ3VsYXIvY29yZSI6IjEzLjIuNiJ9fQ%3D%3D

  2. API Response ==> 404 NOT FOUND

How can you help us identify what the problem would be for these users, here are some logins and recent connection dates: Monday February 26 between 5 p.m. and 6:30 p.m. WAT for tanxxxxxxxri@gmail.com and dxxxxxxy@cityxxxxmr.com

Thanks in advance



Thank you for posting @philippeb !

It looks like the URL of the /login request is incorrectly encoded - some of the URL parts are URL-encoded, and some not. There are white spaces which shouldn’t be there.

In the above part, I believe the redirect_uri is not a valid URL.
If we decode the redirect_uri part we get only HTTPS:

Could you please take a closer look at the part of your code responsible for forming the above URL?

Hi @philippeb ,

Looking at the login URL I can see that also one path params is missing: a proper URL would contain "u/" before "login", like this: https://auth0's_domain.auth0.com/u/login

This would explain why some of users got Not Found 404 - the request URI is malformed thus doesn’t return anything.

  • Could you please ask one of the affected users to try to log in to your app from a different machine? Does the login URL looks the same then (is similarly malformed)?

  • Does the login attempts your referred to has been recorded by your Auth0’s tenant? (Do you see them on the Monitoring section of your Auth0’s tenant?)

Answering to these questions will help us to understand better the nature of a problem.

Hello @marcelina.barycka

Thanks for your support. We had already tried to ask different other users to login on the same device, same network, same connection, same browser, same config… WE even went ourselves to the customer premises, in order to try our own login in the very same condition that they were doing their own login attempts… And for every attempted login, we have never been able to get any different response than the one of this post, even changing from one device to another into their premises.

But finally earlier today, with the help of one of our fullstack sw engineer, the issue seemed to come from the url of a cdn that was not reachable for the machine of that specific network. So we had to declare on auth0 server config another cdn that was reachable.

Can’t tell you anything more clear or precise as I was not the one doing the config on Auth0, but I have explained the gemeric principle hoping that you have understood.

1 Like

Appreciate your update on that @philippeb and it’s great that you have been able to manage it! I shared your isight internally.

Sometimes a generic issue description is absolutely enough to deliver a complete support, but in this case, my initial assumption of the potential root cause was different than in your solution, thus sometimes it takes, for example, investigating the HAR files by our support team.

Thank you! Please let us know if we can assist you more on this issue.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.