Open tredondo opened 1 year ago
Assigning to @getsentry/support for routing, due by (sfo). ⏲️
Based on our Code of Conduct, I had to adjust your original message.
We can take a look to clarify the documentation around this topic.
I'm spending a week already reverse engineering the NodeJs SDK enormous source code in order try and assemble a valid request and got stuck at that message also.
I'm sending a POST request to https://<MY_TOKEN>@sentry.io/api/<OROJECT_ID>/store
with JSON body and Content-Type: application/json
header and get the infamous message:
Failed to deserialize query string: missing field `sentry_data`
I can't seem to find this field description anywhere. Except for this, maybe.
Well, after a lot of coming and going, my issue was missing a trailing slash in the URL.
It worked for me like this: POST
to https://sentry.io/api/<PROJECT_ID>/store/
. Sending X-Sentry-Auth
header like this:
Sentry sentry_version=7, sentry_key=<MY_KEY>,
Here are some resources:
Routing to @getsentry/product-owners-sdks-web-frontend for triage ⏲️
I'm going to backlog this - I think docs in this direction could for sure be improved, but we are so swamped with work right now that it may be some time until we get around to do this - PRs are welcome!
Routing to @getsentry/product-owners-apis for triage ⏲️
Core or SDK?
Platform/SDK
Which part? Which one?
Event creation
Description
I have a request similar to the muzzled #6054. I'm in an environment (Google Apps Script) for which there's no SDK, because it's impossible to import anything. It also has crappy logging so I want to use Sentry.
How can I make a simple API request to log something? I'm coming from Rollbar, where this is very easy and clearly documented. With Sentry, it's very hard to figure out how to do this:
X-Sentry-Auth
in the Working example section is not documented and I don't know where to find those values. The DSN and the other entries on the Client Keys page look completely different and there's nosecret
that I see. Does that page automatically pull my keys into the example? (If not, it should use some sort ofYOUR-KEY-HERE
placeholders)sentry_data
"Would be nice not to have to go through the whole Node.js code base to figure out something this basic.
Suggested Solution
Learn from Rollbar - https://docs.rollbar.com/reference/create-item