Error using google.protobuf.Any
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 40/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- backend-api-design
Research direction
Start with compile.js around line 157 and reproduce the failure using the provided Repl.it sandbox and proto snippet containing google.protobuf.Any. Trace how field types are handled, then verify that this proto compiles without the reported Unexpected type error and that the resulting behavior is covered by tests.
Written by the indexing model from the issue text.
Description
Sandbox: https://repl.it/repls/GleamingWhimsicalInformationtechnology
pbf fails to compile this proto
message RequestEnvelope {
string correlationId = 1;
string callPath = 2;
google.protobuf.Any payload = 3;
}
with
./node_modules/pbf/compile.js:157
default: throw new Error('Unexpected type: ' + field.type);
Error: Unexpected type: google.protobuf.Any
at compileFieldRead (./node_modules/pbf/compile.js:157:28)
Is it known that it's not supported or am I doing something wrong?
- Dominant language
- JavaScript
- Stars
- 881
- Forks
- 113
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mapbox/pbf
-
question
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·