Skip to content

Getting 400 when calling GetSubmissions operation #879

Answered by jshcodes
NSH531 asked this question in Q&A
Discussion options

You must be logged in to vote

The code above will result in the full JSON return from the Submit operation being provided to the ids keyword for the GetSubmissions method. This will produce an error.

Instead, the ids keyword should be provided the contents of the resources branch from the Submit operation's JSON response. (Which in this case would be a list.)

More information on response handling can be found here.

Example

print(x.command("GetSubmissions", ids=x.command("Submit",data)["body"]["resources"]))

Please note: The contents of data could also potentially generate errors when provided to the Submit operation. If you are not using the value, you should not include it in the definition of this dictionary.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by NSH531
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
uber Questions related to Uber Class usage SDK usage General SDK usage issues and questions
2 participants