Azure / azure-functions-core-tools

Command line tools for Azure Functions
MIT License
1.32k stars 433 forks source link

Error while executing Azure functions locally aswell as in Azure #3205

Open tiru007 opened 1 year ago

tiru007 commented 1 year ago

Error while executing Azure functions locally aswell as in Azure

[2022-11-20T11:48:01.245Z] Executed 'Functions.HttpOcrFunc' (Failed, Id=f4ed09ae-8c5a-41ff-a705-a1e6ed8b1e93, Duration=687ms) [2022-11-20T11:48:01.245Z] System.Private.CoreLib: Exception while executing function: Functions.HttpOcrFunc. System.Private.CoreLib: Result: Failure [2022-11-20T11:48:01.245Z] Exception: KeyError: 'NEE-PR' [2022-11-20T11:48:01.245Z] Stack: File "/usr/lib/azure-functions-core-tools-4/workers/python/3.8/LINUX/X64/azure_functions_worker/dispatcher.py", line 448, in _handleinvocation_request [2022-11-20T11:48:01.246Z] call_result = await self._loop.run_in_executor( [2022-11-20T11:48:01.246Z] File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run [2022-11-20T11:48:01.246Z] result = self.fn(*self.args, self.kwargs) [2022-11-20T11:48:01.246Z] File "/usr/lib/azure-functions-core-tools-4/workers/python/3.8/LINUX/X64/azure_functions_worker/dispatcher.py", line 691, in _run_sync_func [2022-11-20T11:48:01.246Z] return ExtensionManager.get_sync_invocation_wrapper(context, [2022-11-20T11:48:01.246Z] File "/usr/lib/azure-functions-core-tools-4/workers/python/3.8/LINUX/X64/azure_functions_worker/extension.py", line 215, in _raw_invocation_wrapper [2022-11-20T11:48:01.246Z] result = function(args) [2022-11-20T11:48:01.246Z] File "/mnt/d/python/linuxpythonazurefunction/HttpOcrFunc/init__.py", line 18, in main [2022-11-20T11:48:01.246Z] df = gettables.gettables(symbol) [2022-11-20T11:48:01.246Z] File "/mnt/d/python/linuxpythonazurefunction/HttpOcrFunc/gettables.py", line 4, in gettables [2022-11-20T11:48:01.246Z] df = yf.download(symbol, start='2020-01-01') [2022-11-20T11:48:01.246Z] File "/home/tiru/.local/lib/python3.8/site-packages/yfinance/multi.py", line 149, in download [2022-11-20T11:48:01.247Z] return shared._DFS[shared._ISINS.get(ticker, ticker)] [2022-11-20T11:48:01.247Z] . [2022-11-20T11:48:01.259Z] Executed 'Functions.HttpOcrFunc' (Failed, Id=8ba99354-f7bd-4975-8de8-0b39984f745b, Duration=721ms)

Getting this error after initial few requests

surgupta-msft commented 5 days ago

Apologies for the delay. Do you still want us to investigate the issue?

microsoft-github-policy-service[bot] commented 1 day ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

If you are not the original author (tiru007) and believe this issue is not stale, please comment with /bot not-stale and I will not close it.