question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to "modifyAckDeadline": Metadata key contains illegal characters

See original GitHub issue

Environment details

  • OS: linux
  • Node.js version: 10.15.3
  • yarn version: 1.15.2
  • @google-cloud/pubsub version: 0.30.1

Steps to reproduce

We use code similar to the sample https://github.com/googleapis/nodejs-pubsub/blob/ede57841e391680f4d8875d60eb17b62389cd7d8/samples/subscriptions.js#L225 to receive messages, but use the following subscription config:

    const options = {
      flowControl: {
        allowExcessMessages: false,
        maxMessages: 20,
        maxExtension: 10,
      },
    }
    pubSub.subscription(subscriptionName, options)

We see the following error messages in our logs:

Error: Failed to "modifyAckDeadline" for 9 message(s). Reason: Metadata key "a" contains illegal characters
    at Object.keys.map (/base/node_modules/@google-cloud/pubsub/src/message-queues.ts:238:15)

We haven’t seen this message before we updated to version 0.30.0 and this error is still reported after updating to version 0.30.1.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
katmattcommented, Jul 18, 2019

@bcoe We updated to version 1.1.5 of google-gax and it didn’t fix this issue. We now see a different, but somehow related error in our logs:

(node:1) Error: Failed to add metadata entry  §NÜ: Thu, 18 Jul 2019 10:39:54 GMT. Metadata key " §nü" contains illegal characters
0reactions
bcoecommented, Jul 29, 2019

@katmatt 👍 awesome. Going to go ahead and close this issue, please let us know if you bump into any related issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Release Notes | Google Cloud CLI Documentation
Messages and fails early when the user tries to upload with an invalid schema. ... Label keys and values can be no longer...
Read more >
Metadata key contains illegal characters - Bountysource
Metadata key contains illegal characters. ... We've started noticing a new error in production (and in staging env also) that happens ~50 ...
Read more >
Spring Cloud
Indicates if an error while retrieving the parameters should fail starting the ... If you get an exception due to "Illegal key size"...
Read more >
https://openi.pcl.ac.cn/lewis/aiforge-test/commit/...
Policy) error { + md := metadata. ... CallOption + ModifyAckDeadline []gax. ... It must start with a letter, +// and contain only...
Read more >
Schema$DeadLetterPolicy - googleapis documentation
If validation on any of the fields fails at subscription creation/updation, the create/update ... A NACK is any call to ModifyAckDeadline with a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found