You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I guess this is a backend issue, but reporting here just in case.
The docs state:
Attribute key size: 256 bytes
Attribute value size: 1024 bytes
However attempting to publish a message with a larger key or value size, results in exception messages mentioning length instead.
io.grpc.StatusRuntimeException: INVALID_ARGUMENT: The attribute "�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������" in the request has a key that is too long. The length is 257 characters, but the maximum allowed is 256. Refer to https://cloud.google.com/pubsub/quotas for more information.
Steps to reproduce:
Craft a message with an attribute key or value with multibyte characters, with the max allowed length specified in the exception (key=256, value=1024).
Observe misleading exceptions
Do the same with no non-multibyte characters
Observe how the exception is not triggered
The text was updated successfully, but these errors were encountered:
I guess this is a backend issue, but reporting here just in case.
The docs state:
Attribute key size: 256 bytes
Attribute value size: 1024 bytes
However attempting to publish a message with a larger key or value size, results in exception messages mentioning length instead.
Steps to reproduce:
The text was updated successfully, but these errors were encountered: