Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save SiarheiFedartsou/7d8e160dbd29d7a69310ba6d30192381 to your computer and use it in GitHub Desktop.
Save SiarheiFedartsou/7d8e160dbd29d7a69310ba6d30192381 to your computer and use it in GitHub Desktop.
scSubscribe и newsSubsribe строкой, как было раньше:
PUT /v1/account/523313 HTTP/1.1
Host: dev2.mobitee.com
Content-Type: application/json
Cookie: PHPSESSID=gaihdgc3p7f36oob37o022e2q7; language=en
Connection: keep-alive
Accept: */*
X-BUILD: I_1.4.4_Device_iPhone_Locale_en
User-Agent: Mobitee and PIQ/1.4.4 (iPhone; iOS 9.3; Scale/2.00)
Accept-Language: en-US;q=1
Content-Length: 193
Accept-Encoding: gzip, deflate
{"gender":"man","scSubscribe":"0","firstName":"Piter","mainHand":"right","birthday":"1982-06-15","email":"[email protected]","newsSubscribe":"1","scoreSystem":"4","hcp":"19.4","lastName":"Parker"}
HTTP/1.1 400 Bad Request
Server: nginx/1.1.19
Date: Tue, 16 Aug 2016 06:14:47 GMT
Content-Type: application/json; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Cache-Control: no-cache, must-revalidate
Expires: Sat, 10 Dec 2011 19:10:05 GMT
Pragma: no-cache
{"status":"error","code":400,"message":"Invalid `newSubscribe` value received"}
теперь интом
PUT /v1/account/523313 HTTP/1.1
Host: dev2.mobitee.com
Content-Type: application/json
Cookie: PHPSESSID=gaihdgc3p7f36oob37o022e2q7; language=en
Connection: keep-alive
Accept: */*
X-BUILD: I_1.4.4_Device_iPhone_Locale_en
User-Agent: Mobitee and PIQ/1.4.4 (iPhone; iOS 9.3; Scale/2.00)
Accept-Language: en-US;q=1
Content-Length: 189
Accept-Encoding: gzip, deflate
{"gender":"man","scSubscribe":0,"firstName":"Piter","mainHand":"right","birthday":"1982-06-15","email":"[email protected]","newsSubscribe":1,"scoreSystem":"4","hcp":"19.4","lastName":"Parker"}
HTTP/1.1 500 Internal Server Error
Server: nginx/1.1.19
Date: Tue, 16 Aug 2016 06:17:49 GMT
Content-Type: application/json; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Cache-Control: no-cache, must-revalidate
Expires: Sat, 10 Dec 2011 19:10:05 GMT
Pragma: no-cache
{"status":"error","code":500,"message":"PIQ error: Could not read document: Unrecognized field \"scSubscribe\" (class com.octonion.server.piq.golf.user.GolfUserBean), not marked as ignorable (24 known properties: \"lastName\", \"partnerId\", \"eula\", \"mainHand\", \"city\", \"module\", \"nickname\", \"activated\", \"sport\", \"hcp\", \"avatarURL\", \"title\", \"avatar\", \"msisdn\", \"id\", \"email\", \"birthday\", \"gender\", \"slope\", \"stateId\", \"sendEmail\", \"country\", \"firstName\", \"scoreSystem\"])\n at [Source: java.io.PushbackInputStream@2142952f; line: 1, column: 33] (through reference chain: com.octonion.server.piq.golf.user.GolfUserBean[\"scSubscribe\"]); nested exception is com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field \"scSubscribe\" (class com.octonion.server.piq.golf.user.GolfUserBean), not marked as ignorable (24 known properties: \"lastName\", \"partnerId\", \"eula\", \"mainHand\", \"city\", \"module\", \"nickname\", \"activated\", \"sport\", \"hcp\", \"avatarURL\", \"title\", \"avatar\", \"msisdn\", \"id\", \"email\", \"birthday\", \"gender\", \"slope\", \"stateId\", \"sendEmail\", \"country\", \"firstName\", \"scoreSystem\"])\n at [Source: java.io.PushbackInputStream@2142952f; line: 1, column: 33] (through reference chain: com.octonion.server.piq.golf.user.GolfUserBean[\"scSubscribe\"])"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment