Comments (7)
@spluxx any updates on this ? I am facing the same issue.
from protoman.
Same here
from protoman.
Hmm that's strange. To best of my knowledge, enum values in protobuf are serialized as numbers rather than strings. Could you provide me a snippet of the .proto
file and how you're constructing your message?
from protoman.
I have two .proto
file
backend/server/status/get.proto
syntax = "proto3";
package backend.server.status;
option go_package = "backend/app/pb/server/status";
import "backend/public/responseHead.proto";
import "backend/public/platform.proto";
message GetResponse {
backend.public.ResponseHead head = 1;
backend.public.Platform platform = 2;
}
backend/public/platform.proto
syntax = "proto3";
package backend.public;
option go_package = "backend/app/pb/public";
enum Platform {
PLATFORM_EMAIL = 0;
PLATFORM_WXMINI = 1;
PLATFORM_WXH5 = 2;
PLATFORM_MOBILE = 3;
}
An error occurred on the platform
in GetResponse
from protoman.
Hmm that's strange. I'll double check to see what's going on. Thank you!
from protoman.
@spluxx any updates on this ? I am facing the same issue.
got the solution?
from protoman.
I'm running into this issue too (v0.4.0 on Windows 10). Even an enum with a single option will cause issues:
syntax = "proto3";
package enumtest;
message MyObject {
enum MessageType {
MY_MESSAGE_TYPE = 0;
}
MessageType message_type = 1;
}
Here I encoded { messageType: 0 }
:
I noticed if messageType
is out of range, it will use the enum default (here MY_MESSAGE_TYPE
) with no error. Here I encoded { messageType: 15 }
:
Going to look into this a bit later, but at least the data can be verified in the readout window below the error message for now.
from protoman.
Related Issues (20)
- Delete nodes does not work
- Not sure how to use field with type "bytes" HOT 1
- Blank UI - while opening HOT 2
- The given content-type is unsupported. HOT 10
- Ability to send JSON requests as well as Protobuf HOT 1
- Clone (copy) request HOT 1
- Feature request: JSON Body
- The request url bar is truncated when I increase the window size on MacOS HOT 2
- windows don't save size when turn off HOT 1
- how to allow certificate issue HOT 2
- Protocol "http:" not supported. Expected "https:" HOT 4
- White screen - after click at Body
- Datatypes check
- support Snappy content encoding
- Optional fields are filled with default empty values HOT 3
- Protocol "http:" not supported. Expected "https:" HOT 1
- Hope to support websocket protocol HOT 1
- Json ContentType with ;charset=utf-8 is not recognized
- Ability to not pass implicit headers "application/x-protobuf" to the request
- Request failed, reason: unable to get local issuer certificate
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from protoman.