Thanks to visit codestin.com
Credit goes to github.com

Skip to content

broken request.data.decode('utf-8') call #1965

Closed
@cerebraljam

Description

@cerebraljam

envelope = json.loads(request.data.decode('utf-8'))

As written currently, the code returns the following error message, since request.data is empty.
raise ValueError("No JSON object could be decoded")

It works if written as
envelope = json.loads(request.get_data().decode('utf-8'))

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.api: appengineIssues related to the App Engine Admin API API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions