Open manish-rocks opened 2 years ago
Hi @vrdmr , Could you please look into this issue.
hello. did anyone reach a solution as I am having the same issue with adding folders using makedirs()
getting same error... any update?
@v-bbalaiagar @vrdmr - could you please update this issue? I am facing the same issue.
I'm now getting the same error. Thing is, the code ran fine in Azure for several days. I updated the code to try implementing a new function which was unsuccessful. After reverting back to the original code, I'm now getting this error.
I've noticed that sometimes the first few runs of a triggered function app can result in errors, but eventually the problem "fixes" itself. There seems to be some issues with installing the python packages from the requirements.txt document. Hopefully, the problem fixes itself.
python function giving error in azure cloud but running locally fine
I have created 1 azure function(time trigger locally) and it was working fine. But when I deployed it on azure using Vs Code and ran then it was giving error like below which I was able to see in monitor tab in azure function: 2022-04-18 11:27:44.021 Result: Failure Exception: OSError: [Errno 38] Function not implemented: 'scraped_json_files/airbnb.json' -> 'scraped_json_files/airbnb2022-04-18_11-27-44.json' Stack: File "/azure-functions-host/workers/python/3.9/LINUX/X64/azure_functions_worker/dispatcher.py", line 402, in _handleinvocation_request call_result = await self._loop.run_in_executor( File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, self.kwargs) File "/azure-functions-host/workers/python/3.9/LINUX/X64/azure_functions_worker/dispatcher.py", line 611, in _run_sync_func return ExtensionManager.get_sync_invocation_wrapper(context, File "/azure-functions-host/workers/python/3.9/LINUX/X64/azure_functions_worker/extension.py", line 215, in _raw_invocation_wrapper result = function(args) File "/home/site/wwwroot/scraper_timer_trigger/init__.py", line 35, in main os.rename(path,new_file_path).
below is the code of init.py file of the function.
below is the project structure which I have created locally in vs code.
in this image scraper_timer_trigger is the azure function name. scraper_function is the scrapy project. and other directories for storing files etc.
guys plz help what am I doing wrong in here.