Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(server): Send envelopes to the envelope endpoint #746

Merged
merged 3 commits into from
Sep 2, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion relay-server/src/actors/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1432,7 +1432,7 @@ impl Handler<HandleEnvelope> for EventManager {
}

log::trace!("sending event to sentry endpoint");
let request = SendRequest::post(format!("/api/{}/store/", project_id)).build(
let request = SendRequest::post(format!("/api/{}/envelope/", project_id)).build(
move |builder| {
// Override the `sent_at` timestamp. Since the event went through basic
// normalization, all timestamps have been corrected. We propagate the new
Expand Down
3 changes: 2 additions & 1 deletion tests/integration/fixtures/mini_sentry.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def store_internal_error_event():
)
return jsonify({"event_id": uuid.uuid4().hex})

@app.route("/api/42/store/", methods=["POST"])
@app.route("/api/42/envelope/", methods=["POST"])
def store_event():
if flask_request.headers.get("Content-Encoding", "") == "gzip":
data = gzip.decompress(flask_request.data)
Expand All @@ -144,6 +144,7 @@ def store_event():
return jsonify({"event_id": uuid.uuid4().hex})

@app.route("/api/<project>/store/", methods=["POST"])
@app.route("/api/<project>/envelope/", methods=["POST"])
def store_event_catchall(project):
raise AssertionError(f"Unknown project: {project}")

Expand Down