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

Python AddProductParams test failing because empty string upserted as null #585

Closed
lucyzhang929 opened this issue Dec 12, 2022 · 1 comment

Comments

@lucyzhang929
Copy link
Contributor

Exception: KeyError: 'name'
 [60012] [2022-12-12T16:57:16.717Z] Stack:   File "/Users/lucyzhang/.nvm/versions/node/v14.18.2/lib/node_modules/azure-functions-core-tools/bin/workers/python/3.8/OSX/X64/azure_functions_worker/dispatcher.py", line 448, in _handle__invocation_request
 [60012] [2022-12-12T16:57:16.717Z]     call_result = await self._loop.run_in_executor(
 [60012] [2022-12-12T16:57:16.717Z]   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/concurrent/futures/thread.py", line 57, in run
 [60012] [2022-12-12T16:57:16.717Z]     result = self.fn(*self.args, **self.kwargs)
 [60012] [2022-12-12T16:57:16.717Z]   File "/Users/lucyzhang/.nvm/versions/node/v14.18.2/lib/node_modules/azure-functions-core-tools/bin/workers/python/3.8/OSX/X64/azure_functions_worker/dispatcher.py", line 691, in _run_sync_func
 [60012] [2022-12-12T16:57:16.717Z]     return ExtensionManager.get_sync_invocation_wrapper(context,
 [60012] [2022-12-12T16:57:16.717Z]   File "/Users/lucyzhang/.nvm/versions/node/v14.18.2/lib/node_modules/azure-functions-core-tools/bin/workers/python/3.8/OSX/X64/azure_functions_worker/extension.py", line 215, in _raw_invocation_wrapper
 [60012] [2022-12-12T16:57:16.717Z]     result = function(**args)
 [60012] [2022-12-12T16:57:16.717Z]   File "/Users/lucyzhang/GitProjects/azure-functions-sql-extension/test/bin/Debug/net6/SqlExtensionSamples/Python/AddProductParams/__init__.py", line 8, in main
 [60012] [2022-12-12T16:57:16.717Z]     row = func.SqlRow(Product(req.params["productId"], req.params["name"], req.params["cost"]))
@lucyzhang929
Copy link
Contributor Author

Related issue in Python worker Azure/azure-functions-python-worker#894

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants