Python SDK - 'Field "null" was of unexpected type' when creating a webhook
integration
✭✭
I'm trying to create a webhook using the smartsheet-python-sdk (2.105.1):
webhook = Smartsheet.models.webhook.Webhook( props={ "name": "[redacted]", "callbackUrl": "[redacted]", "scope": "sheet", "scopeObjectId":"[redacted]" "events": ["[*.*]"], "version": 1 } ) print(webhooks.create_webhook(webhook))
I'm getting the following error, however:
{ "result": { "code": 1008, "errorCode": 1008, "message": "Unable to parse request. The following error occurred: Field \"null\" was of unexpected type.", "name": "ApiError", "recommendation": "Do not retry without fixing the problem. ", "refId": "1dba9ihewshe0", "shouldRetry": false, "statusCode": 400 } }
Can someone fill me in on what I'm doing wrong here?
Tags:
Answers
-
I figured it out:
"events": ["[*.*]"],
should be:
"events": ["*.*"],
Obviously, this is entirely my fault, but the error message could be a little more informative.
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives