Which all works. Though I’m confused how to add contexts to a request like this.
Tried a variety of “cx” and “co” values in JSON and querystring, base64 encoded and not. Also tried schema: 'iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0' with “data” key as an array of nested objects with schema/data pairs as well. Nothing I’ve tried seems to work.
What environment are you executing this in? Generally you’ll want to be using either the /i or /tp2 endpoint (for GET and POST respectively) rather than the endpoint above which is more specifically for webhooks and things that are adapted to Iglu.
Thanks for the example. I used ue_px and cx since base64 encoding was easier with the Insomnia REST tool I’m using. Messages still ended up in the bad topic though. I’ll keep trying various combinations with the proper endpoint now though.
@Tom_M, great! I assume the issue is rather with either how you composed your data in the request or the validation of that data against the corresponding JSON schema. Let us know if you need any help to figure out why your event ended up in bad queue.
I also use Insomnia and just extracted curl from it to demonstrate. I picked up an unencoded example for visibility too. Using base64 encoded data is a prefered method.