Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

fix: ImproveAny decode error#712

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
parthea merged 7 commits intogoogleapis:mainfromMarkDaoust:any-error
Oct 22, 2024
Merged

Conversation

MarkDaoust
Copy link
Contributor

@MarkDaoustMarkDaoust commentedOct 1, 2024
edited
Loading

Was (useless):

TypeError: Could not convert Any to TimeOfDay

Now:

TypeError: Could not convert `google.protobuf.any_pb2.Any` with underlying type `google.type.Date` to `google.type.TimeOfDay`

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

Fixes#711 🦕

Was:TypeError: Could not convert Any to PredictLongRunningResponseNow:TypeError: Could not convert   Any[google.ai.generativelanguage.v1main.PredictLongRunningResponse] to       google.ai.generativelanguage.v1beta.PredictLongRunningResponse
@MarkDaoustMarkDaoust requested review froma team ascode ownersOctober 1, 2024 23:53
@product-auto-labelproduct-auto-labelbot added the size: xsPull request size is extra small. labelOct 1, 2024
@ohmayr
Copy link
Contributor

@MarkDaoust Hmm looking at your comment above, is this right syntaxAny[google.ai.generativelanguage.v1main.PredictLongRunningResponse] for Python?

@ohmayrohmayr changed the titleImprove Any decoding-error.chore: ImproveAny decode errorOct 4, 2024
@conventional-commit-lint-gcfConventional Commit Lint GCF

🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or useautomerge label. Good luck human!

-- conventional-commit-lint bot
https://conventionalcommits.org/

@partheaparthea self-assigned thisOct 9, 2024
@partheaparthea changed the titlechore: ImproveAny decode errorfix: ImproveAny decode errorOct 9, 2024
@product-auto-labelproduct-auto-labelbot added size: sPull request size is small. and removed size: xsPull request size is extra small. labelsOct 9, 2024
@partheaparthea assignedohmayr and unassignedparthea andvchudnov-gOct 9, 2024
@partheaparthea requested a review fromohmayrOctober 9, 2024 17:06
with pytest.raises(
TypeError,
match=re.escape(
"Could not convert `google.protobuf.any_pb2.Any` with underlying type `google.type.Date` to `google.type.TimeOfDay`"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Am I reading this correct or should it instead be the following? (My assumption is that the underlying type should beAny).

Suggested change
"Could not convert `google.protobuf.any_pb2.Any` with underlying type `google.type.Date` to `google.type.TimeOfDay`"
"Could not convert `google.type.Date` with underlying type `google.protobuf.any_pb2.Any` to `google.type.TimeOfDay`"

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Fixed indc33849

@partheapartheaenabled auto-merge (squash)October 22, 2024 14:23
@partheaparthea merged commit0d5ed37 intogoogleapis:mainOct 22, 2024
41 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@partheapartheaparthea left review comments

@ohmayrohmayrohmayr approved these changes

Assignees

@ohmayrohmayr

Labels
size: sPull request size is small.
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

from_any_pb gives a useless error message when the type names don't match.
4 participants
@MarkDaoust@ohmayr@parthea@vchudnov-g

[8]ページ先頭

©2009-2025 Movatter.jp