Skip to content

Keeps produce warning log #413

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
a7711555 opened this issue Feb 18, 2020 · 3 comments · Fixed by #414
Closed

Keeps produce warning log #413

a7711555 opened this issue Feb 18, 2020 · 3 comments · Fixed by #414
Assignees

Comments

@a7711555
Copy link

  • Operating System version: windows 10 1909
  • Library version: 3.2.1
  • Python version: 3.7.6
  • Firebase Product: notify

Firebase keeps produce warning log like below while sending message with messaging.send_multicast()

googleapiclient._helpers - WARNING - __init__() takes at most 1 positional argument (3 given)

I found a relevant issue #305 but the problem still exists

Like the author of #305 said, give http.BatchHttpRequest named arguments can fix the problem, it really work.

Thanks very much.

@google-oss-bot
Copy link

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

@hiranya911
Copy link
Contributor

It seems the warning is dumped by a custom decorator that is being used in the googleapiclient library. We can look into implementing a fix for the next release.

@hiranya911
Copy link
Contributor

hiranya911 commented Feb 19, 2020

I have a fix underway which will be included in the next release (v4.0.0).

Workaround for older versions:

from googleapiclient import _helpers

_helpers.positional_parameters_enforcement = _helpers.POSITIONAL_IGNORE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants