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 : ( Element type is invalid: when routes(named import) are passed to reactDOM.render() method. · Issue #106 · auth0-samples/auth0-react-samples · GitHub ) . 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.

Hey there!

Sorry for such huge delay in response! We’re doing our best in providing you with best developer support experience out there, but sometimes our bandwidth is not enough comparing to the number of incoming questions.

Wanted to reach out to know if you still require further assistance?