Linux, Java
Aether Community Edition v2.0.0-dev.15, build 2011262249.19338c93
I am trying to do a POST request for /v0/c0/boards
Actual behavior
Response is Server returned HTTP response code: 400 for URL: https://localhost:37107/v0/c0/boards
The logs from Aether are
2021/01/09 10:56:30 BoardsPOST POST request parsing failed. Error: &errors.errorString{s:“The request is syntactically valid JSON, but it does not include certain vital information. Remote: 127.0.0.1:59088”}
, Request Header: http.Header{“Accept”:[]string{“application/json”}, “Connection”:[]string{“keep-alive”}, “Content-Length”:[]string{“689”}, “Content-Type”:[]string{“application/json; utf-8”}, “User-Agent”:[]string{“Java/11.0.9.1”}}
, Request Body: api.ApiResponse{NodeId:"", NodePublicKey:“4139c018f836711e9d9d2790e4f78091e354e061b1a1e2371ac5d8a5200bbd69”, Signature:"", ProofOfWork:“MIM1:21::::xHqgPqcjsKOglbii:362467:”, Nonce:“6280b90da285a9d5ab51316287684e3e170b9e1cfba0ae756495fbae54e97ee1”, EntityVersion:1, Address:api.Address{Location:"", Sublocation:"", LocationType:0x0, Port:0x9b93, Type:0x2, LastSuccessfulPing:0, LastSuccessfulSync:0, Protocol:api.Protocol{VersionMajor:0x1, VersionMinor:0x0, Subprotocols:[]api.Subprotocol{api.Subprotocol{Name:“c0”, VersionMajor:0x1, VersionMinor:0x0, SupportedEntities:[]string{“board”, “thread”, “post”, “vote”, “key”, “truststate”}}}}, Client:api.Client{VersionMajor:0x2, VersionMinor:0x0, VersionPatch:0x0, ClientName:“Aether”}, EntityVersion:0, RealmId:"", Verified:false}, Entity:"", Endpoint:"", Filters:[]api.Filter(nil), Timestamp:1610186188, StartsFrom:0, EndsAt:0, Pagination:api.Pagination{Pages:0x0, CurrentPage:0x0}, Caching:api.Caching{Pregenerated:false, CurrentCacheUrl:"", EntityCounts:[]api.EntityCount(nil)}, Results:[]api.ResultCache(nil), ResponseBody:api.Answer{Boards:[]api.Board(nil), Threads:[]api.Thread(nil), Posts:[]api.Post(nil), Votes:[]api.Vote(nil), Keys:[]api.Key(nil), Truststates:[]api.Truststate(nil), Addresses:[]api.Address(nil), BoardIndexes:[]api.BoardIndex(nil), ThreadIndexes:[]api.ThreadIndex(nil), PostIndexes:[]api.PostIndex(nil), VoteIndexes:[]api.VoteIndex(nil), KeyIndexes:[]api.KeyIndex(nil), TruststateIndexes:[]api.TruststateIndex(nil), AddressIndexes:[]api.AddressIndex(nil), BoardManifests:[]api.PageManifest(nil), ThreadManifests:[]api.PageManifest(nil), PostManifests:[]api.PageManifest(nil), VoteManifests:[]api.PageManifest(nil), KeyManifests:[]api.PageManifest(nil), TruststateManifests:[]api.PageManifest(nil), AddressManifests:[]api.PageManifest(nil)}}
*** The question is: What is the way to have Official Aether to report what of the request is “invalid” ?
Thank you