Skip to content
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

ValueError: VectorTown.proto:1405:16: Expected field name. #12

Open
Luvata opened this issue May 5, 2020 · 2 comments
Open

ValueError: VectorTown.proto:1405:16: Expected field name. #12

Luvata opened this issue May 5, 2020 · 2 comments

Comments

@Luvata
Copy link

Luvata commented May 5, 2020

Last Wednesday I still can use pbtk to fiddling with google maps's protobuf (step 1 and step 3)
But then on Friday I got ValueError on most of endpoints on step 3:
Only two of them still works

/maps/@{coods}/data={data}
/maps/dir/{dir1}/{dir2}/@{cỏods}/data={data}

My error with /s

Traceback (most recent call last):
  File "gui.py", line 310, in launch_fuzzer
    self.pb_request = dict(self.pb_request)[data['request']['proto_msg']]()
  File "/home/thanhlv/workspace/decode_pb/pbtk/utils/common.py", line 179, in load_proto_msgs
    raise ValueError(cmd.stderr.decode('utf8'))
ValueError: Search.proto:1884:62: Field numbers must be positive integers.
Search.proto:636:18: "undefined" is not defined.
Search.proto:637:18: "undefined" is not defined.
Search.proto:638:29: Field number 6 has already been used in "Search.E" by field "f".
Search.proto:639:18: "undefined" is not defined.
Search.proto:640:18: Field number 8 has already been used in "Search.E" by field "h".
Search.proto:641:20: Field number 9 has already been used in "Search.E" by field "i".
Search.proto:828:22: "undefined" is not defined.
Search.proto:1879:50: "undefined" is not defined.
Search.proto:1880:50: "undefined" is not defined.
Search.proto:1883:41: "undefined" is not defined.
Search.proto:2011:14: "undefined" is not defined.
Search.proto:2013:5: "undefined" is not defined.
Aborted (core dumped)

and /maps/vt

Traceback (most recent call last):
  File "gui.py", line 310, in launch_fuzzer
    self.pb_request = dict(self.pb_request)[data['request']['proto_msg']]()
  File "/home/thanhlv/workspace/decode_pb/pbtk/utils/common.py", line 179, in load_proto_msgs
    raise ValueError(cmd.stderr.decode('utf8'))
ValueError: VectorTown.proto:1405:16: Expected field name.
Aborted (core dumped)

Is it only my problem or did Google recently change the response format ?

Thanks for your awesome tool, it helps me a lot !

@Luvata
Copy link
Author

Luvata commented May 5, 2020

I add this line

var type = typeArray[field_letter];
>> if (type === undefined) {console.log(">>>> WARNING ", field_letter)};

And start step 1, when open dev tools I found 4 new types are

c
l (lower case of L)
+
_

@exhumea
Copy link

exhumea commented Jul 27, 2023

In addition to the ones you've already listed, I also spotted those new custom types:

^
*
,  // seems to be for used for packed repeated scalar types

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

No branches or pull requests

2 participants