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

Params from .env doesn't work #32

Open
greybax opened this issue May 6, 2020 · 0 comments
Open

Params from .env doesn't work #32

greybax opened this issue May 6, 2020 · 0 comments

Comments

@greybax
Copy link

greybax commented May 6, 2020

Describe the bug
Added .env into root of my project folder.
Installed this package from npm.
Used call as it described into readme.
Got an error into console:

xhr.js:172 GET https://cloud.iexapis.com/undefined/stock/amzn/quote?token=undefined 404
dispatchXhrRequest @ xhr.js:172
xhrAdapter @ xhr.js:11
dispatchRequest @ dispatchRequest.js:59
Promise.then (async)
request @ Axios.js:53
Axios.<computed> @ Axios.js:68
wrap @ bind.js:9
push../node_modules/iexcloud_api_wrapper/lib/Services/iexcloud.service.js.exports.iexApiRequest @ iexcloud.service.js:36
(anonymous) @ Quote.service.js:14
(anonymous) @ Quote.service.js:7
push../node_modules/iexcloud_api_wrapper/lib/Services/Quote.service.js.__awaiter @ Quote.service.js:3
push../node_modules/iexcloud_api_wrapper/lib/Services/Quote.service.js.exports.quote @ Quote.service.js:12
quote @ App.js:8
callCallback @ react-dom.development.js:188
invokeGuardedCallbackDev @ react-dom.development.js:237
invokeGuardedCallback @ react-dom.development.js:292
invokeGuardedCallbackAndCatchFirstError @ react-dom.development.js:306
executeDispatch @ react-dom.development.js:389
executeDispatchesInOrder @ react-dom.development.js:414
executeDispatchesAndRelease @ react-dom.development.js:3278
executeDispatchesAndReleaseTopLevel @ react-dom.development.js:3287
forEachAccumulated @ react-dom.development.js:3259
runEventsInBatch @ react-dom.development.js:3304
runExtractedPluginEventsInBatch @ react-dom.development.js:3514
handleTopLevel @ react-dom.development.js:3558
batchedEventUpdates$1 @ react-dom.development.js:21871
batchedEventUpdates @ react-dom.development.js:795
dispatchEventForLegacyPluginEventSystem @ react-dom.development.js:3568
attemptToDispatchEvent @ react-dom.development.js:4267
dispatchEvent @ react-dom.development.js:4189
unstable_runWithPriority @ scheduler.development.js:653
runWithPriority$1 @ react-dom.development.js:11039
discreteUpdates$1 @ react-dom.development.js:21887
discreteUpdates @ react-dom.development.js:806
dispatchDiscreteEvent @ react-dom.development.js:4168
createError.js:16 Uncaught (in promise) Error: Request failed with status code 404
    at createError (createError.js:16)
    at settle (settle.js:17)
    at XMLHttpRequest.handleLoad (xhr.js:59)

Desktop (please complete the following information):

  • OS: windows 10
  • Browser chrome
  • Version: 81.0.4044.129
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

1 participant