cudeso / misp2sentinel

MISP to Sentinel integration
MIT License
60 stars 20 forks source link

misp2sentinel JSONDecodeError in Azure Function #113

Open jburrell6326 opened 2 days ago

jburrell6326 commented 2 days ago

First Git/Azure Function App/python use, please advise if this is not the correct method for assistance.

When setting up the misp2sentinel function app, I used Visual Studio to upload the Git repo. I had to work thru some issues with the incorrect API key for MISP being supplied but then I seem to have gotten past authentication issues. Now I am stuck trying to understand/figure out how to resolve this issue. I continue to get the following error even after redeploying the function.

Any suggestions are appreciated.

Thank you

Result: Failure Exception: JSONDecodeError: Expecting value: line 1 column 1 (char 0) Stack: File "/azure-functions-host/workers/python/3.11/LINUX/X64/azure_functions_worker/dispatcher.py", line 661, in _handleinvocation_request call_result = await self._loop.run_in_executor( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/azure-functions-host/workers/python/3.11/LINUX/X64/azure_functions_worker/dispatcher.py", line 990, in _run_sync_func return ExtensionManager.get_sync_invocation_wrapper(context, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/azure-functions-host/workers/python/3.11/LINUX/X64/azure_functions_worker/extension.py", line 211, in _raw_invocation_wrapper result = function(args) ^^^^^^^^^^^^^^^^ File "/home/site/wwwroot/MISP2Sentinel/init.py", line 127, in main pmain() File "/home/site/wwwroot/MISP2Sentinel/init__.py", line 108, in pmain tenants = json.loads(tenants_env) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/json/init.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None