Skip to content

Instantly share code, notes, and snippets.

@AdamSaleh
Created January 16, 2015 15:27
Show Gist options
  • Select an option

  • Save AdamSaleh/ad346409c4284c975a67 to your computer and use it in GitHub Desktop.

Select an option

Save AdamSaleh/ad346409c4284c975a67 to your computer and use it in GitHub Desktop.
Bug in message sender test
POST /ag-push/rest/sender/ HTTP/1.1
Authorization: Basic OTA2ZjA3ZTgtMzE5Yy00NzVmLWI2OWEtYWE5NTc2ODBkYWI1OjNhNDZmMTEzLWU5NjctNGUwZS1iNTZkLTI2MWFhNDllMjAxNw==
Content-Type: application/json
Accept: application/json
aerogear-sender: AeroGear Java Sender
Cache-Control: no-cache
Pragma: no-cache
User-Agent: Java/1.7.0_67
Host: localhost:8080
Connection: keep-alive
Content-Length: 119
{"alias":["f4e279a2-e69d-4786-ad71-326573cf","02268317-b8c4-4f50-bf0d-fa101045"],"message":{"alert":"Hello AeroGear!"}}
HTTP/1.1 400 Bad Request
Server: Apache-Coyote/1.1
Content-Type: text/plain
Content-Length: 340
Date: Fri, 16 Jan 2015 15:21:47 GMT
Connection: close
Unrecognized field "alias" (Class org.jboss.aerogear.unifiedpush.message.UnifiedPushMessage), not marked as ignorable
at [Source: org.jboss.resteasy.core.interception.MessageBodyReaderContextImpl$InputStreamWrapper@7e1407a4; line: 1, column: 11] (through reference chain: org.jboss.aerogear.unifiedpush.message.UnifiedPushMessage["alias"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment