Auth0 Home Blog Docs

Resolving 404 errors in React-SPA-Login Example

I have been reading through Auth0 and think it would be a great way to contextualize authentication and authorization in the classroom. I have been trying to implement the SPA React tutorial with little success : ( https://github.com/auth0-samples/auth0-react-samples/issues/106 ) . After overcoming the react-bootstrap errors I run into issues when trying to log-in

auth0.min.esm.js:8 GET https://storefrontmvp.auth0.com/user/ssodata 404

lock.min.js:9 [Violation] 'setTimeout' handler took 105ms

index.js:410 There was an error fetching the SSO data. This could simply mean that there was a problem with the network. But, if a "Origin" error has been logged before this warning, please add...(adding this did not resolve anything"

GET https://secure.gravatar.com/avatar/860749f6372a350c9054770607c5a8de?d=404&s=160 404

GET https://secure.gravatar.com/860749f6372a350c9054770607c5a8de.json?callback=__jp0 net::ERR_ABORTED 404

Navigated to http://localhost:3000/callback

After navigating back to the app, isAuthenticated() continues to return false.

Thank you for your time, an auth0 newbie here :{

1 Like

I’m in the same boat with code based on this quickstart: https://auth0.com/docs/quickstart/spa/vanillajs/02-user-profile

1 Like

Do you have your code posted somewhere? I’d like to compare our work and see if any discrepancies can enlighten us :slight_smile: .

@abid.m.abdelaziz you can pretty much replicate what I have by downloading the quickstart and then after making a few changes, upload to your web host - I have social logins disabled via the dashboard.

Cheers,

1 Like

Thank you for the insight! Im currently getting these errors on Chrome and they are produced from my yarn build. I am not doing anything server-side atm.

How are you navigating back?

1 Like

@jose.navarro I am experiencing the same errors, in my case I am using the sample code as described here: https://auth0.com/docs/quickstart/spa/vanillajs/02-user-profile and with slight modifications as per my post above.