Skip to content
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

UnhandledPromiseRejectionWarning: Unhandled promise rejection #1

Open
vladgheorghita7 opened this issue Nov 6, 2017 · 6 comments
Open

Comments

@vladgheorghita7
Copy link

Hello,
I cloned this to my desktop, ran npm install and npm start and and the page doesnt ever load, also, in the console i get UnhandledPromiseRejectionWarning: Unhandled promise rejection - this doesn't break the npm server command, this just outputs to the console.
I followed the pluralsight course and got to this point as well.

@vladgheorghita7
Copy link
Author

I think its because axios can not resolve from node context?

@bstavroulakis
Copy link
Owner

That is true! In the server-side-rendering module I include a check in the interceptor but didn't mention that in the course. => 9d90c35#diff-df94b4e6a3cc3a7772b2b56e8d4c2e61R5

I will include a callout in the course for this. Did this fix your issue?

@vladgheorghita7
Copy link
Author

Hello,
Adding the interceptor did not work. I implemented this without using JWT, so i just commented the retrieval and setting of the JWT, thus not using it in my interceptor, but it still doesn't pre-render the axior requests.

@bstavroulakis
Copy link
Owner

I see, could you please share your project on Github or through email so I can download and check? My email is [email protected]

@vladgheorghita7
Copy link
Author

I use the exact same project from github -> I just extracted the zip, ran build:server and build:client and then start:prod -> I get unhandled promise exception.
The same error appears if I remove the interceptor you mentioned above

@vladimirvrankulj
Copy link

Hi, do we have any news on this. I watched the course, which was really awesome :), but still have the same issue as mentioned above.
Basically, if I use vue file as pure template it works, but if script tag is included then this issue occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants