In the documentation queryParameters
is listed as one of the request attributes, however whenever I try to add a query string parameter to a web trigger URL and invoke it I get a 400 response.
Request without querystring param
❯ curl -i https://f41824f6-2064-4d4e-a3cc-2eba517ce7b3.hello.atlassian-dev.net/x1/GEmlOUAB-VjMGmDDxQh-RpqCDX0
HTTP/2 200
date: Wed, 20 Oct 2021 20:29:06 GMT
content-type: application/json
content-length: 13
vary: Origin,Access-Control-Request-Method,Access-Control-Request-Headers
cache-control: no-cache, no-store, max-age=0, must-revalidate
pragma: no-cache
expires: 0
x-frame-options: DENY
referrer-policy: no-referrer
x-envoy-upstream-service-time: 1408
server: globaledge-envoy
expect-ct: report-uri="https://web-security-reports.services.atlassian.com/expect-ct-report/web-triggers", max-age=86400
strict-transport-security: max-age=63072000; preload
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
atl-traceid: 59f87568c666de39
report-to: {"group": "endpoint-1", "max_age": 600, "endpoints": [{"url": "https://dj9s4kmieytgz.cloudfront.net"}], "include_subdomains": true}
nel: {"report_to": "endpoint-1", "max_age": 600, "include_subdomains": true, "failure_fraction": 0.001}
{"msg": "ok"}%
Request with querystring param:
❯ curl -i "https://f41824f6-2064-4d4e-a3cc-2eba517ce7b3.hello.atlassian-dev.net/x1/GEmlOUAB-VjMGmDDxQh-RpqCDX0&foo"
HTTP/2 400
date: Wed, 20 Oct 2021 20:31:01 GMT
content-type: application/json
content-length: 155
vary: Origin,Access-Control-Request-Method,Access-Control-Request-Headers
cache-control: no-cache, no-store, max-age=0, must-revalidate
pragma: no-cache
expires: 0
x-frame-options: DENY
referrer-policy: no-referrer
x-envoy-upstream-service-time: 201
server: globaledge-envoy
expect-ct: report-uri="https://web-security-reports.services.atlassian.com/expect-ct-report/web-triggers", max-age=86400
strict-transport-security: max-age=63072000; preload
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
atl-traceid: e9721ff815804873
report-to: {"group": "endpoint-1", "max_age": 600, "endpoints": [{"url": "https://dj9s4kmieytgz.cloudfront.net"}], "include_subdomains": true}
nel: {"report_to": "endpoint-1", "max_age": 600, "include_subdomains": true, "failure_fraction": 0.001}
{"timestamp":"2021-10-20T20:31:01.257+00:00","path":"/x1/GEmlOUAB-VjMGmDDxQh-RpqCDX0&foo","status":400,"error":"Bad Request","requestId":"767c2af0-108357"}%
Can someone let me know what I’m doing wrong?