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

exercise/06-LifecycleMethod DataApi doesn't work #31

Closed
tetron opened this issue Feb 8, 2019 · 3 comments
Closed

exercise/06-LifecycleMethod DataApi doesn't work #31

tetron opened this issue Feb 8, 2019 · 3 comments

Comments

@tetron
Copy link

tetron commented Feb 8, 2019

First off, thanks for this tutorial, it's very nice!

I noticed in doing exercise/06-LifecycleMethod that the data is not loading.

Proxy error: Could not proxy request /api/company/profile/AMZN from 172.17.0.3:3000 to https://financialmodelingprep.com.
See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNRESET).
Proxy error: Could not proxy request /api/company/profile/AMZN from 172.17.0.3:3000 to https://financialmodelingprep.com.
See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (EAI_AGAIN).

I tried changing API_BASE to const API_BASE = https://financialmodelingprep.com/api/company/profile`;` but then the browser wouldn't load it due to financialmodelingprep.com

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://financialmodelingprep.com/api/company/profile/AMZN. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).

I suggest simplifying the tutorial so that the data is served by the tutorial instead of going to a 3rd party resource.

@Shmashmoe
Copy link

Shmashmoe commented Feb 8, 2019

Is it because the 3rd party babe

@Shmashmoe
Copy link

@tyroprogrammer
Copy link
Owner

@tetron - I have removed the dependency to that 3rd party service. DataAPI now serves randomly generated data but does not have any dependency!

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