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

Unexpected JSON response from AlphaVantage #7

Open
Ezyweb-uk opened this issue Jul 3, 2020 · 0 comments
Open

Unexpected JSON response from AlphaVantage #7

Ezyweb-uk opened this issue Jul 3, 2020 · 0 comments

Comments

@Ezyweb-uk
Copy link

Using the code in your example with my API-Key I get the following error:

Fatal error: Uncaught FastStockQuotes\Exceptions\UnexpectedAPIResponseException: Unexpected JSON response from AlphaVantage API - they may have changed. Please contact author Response: {} in D:\www\stockquotes\src\QuoteAPIs\AlphaVantageRequestHandler.php:111 Stack trace: #0 D:\www\stockquotes\src\QuoteServiceImpl.php(115): FastStockQuotes\QuoteAPIs\AlphaVantageRequestHandler->quoteFromResponse('{}') #1 D:\www\stockquotes\src\QuoteServiceImpl.php(67): FastStockQuotes\QuoteServiceImpl->_quotes(Array, Array) #2 D:\www\stockquotes\src\QuoteServiceCached.php(55): FastStockQuotes\QuoteServiceImpl->quotes(Array) #3 D:\www\stockquotes\test.php(24): FastStockQuotes\QuoteServiceCached->quotes(Array) #4 {main} Next FastStockQuotes\Exceptions\FastStockQuotesException: Error retrieving stock quote(s) for: "WBC.AX" Cause: Unexpected JSON response from AlphaVantage API - they may have changed. Please contact author Response: {} in D:\www\stockquotes\src\QuoteServiceImpl.php:119 Stack trace: #0 D:\www\stockquotes\src\QuoteServiceImpl. in D:\www\stockquotes\src\QuoteServiceImpl.php on line 119

I've checked my API-key works.

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