Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Incorrect padding error #2513

Copy link
Copy link

Description

@Teddy-Schmitz
Issue body actions

Hi,
This is in regards to the pubsub module. When I send a test message with data "testing 1 2 3" from the web console to a simple python application it fails to decode the message and throws a

binascii.Error: Incorrect padding

Error from

  File "/python3.5/site-packages/google/cloud/pubsub/message.py", line 88, in from_api_repr
    data = base64.b64decode(api_repr.get('data', b''))
  File "/lib/python3.5/base64.py", line 88, in b64decode

I get the same error if I send the same message using the Go libraries.
I do not get the error if I send the message using python however.
All I'm doing is receiving and printing out the messages.

Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

api: pubsubIssues related to the Pub/Sub API.Issues related to the Pub/Sub API.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.