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
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives