-
-
Notifications
You must be signed in to change notification settings - Fork 939
Description
Provide environment information
System:
OS: macOS 13.5.1
CPU: (10) arm64 Apple M1 Max
Memory: 101.13 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.12.1 - ~/.nvm/versions/node/v18.12.1/bin/node
npm: 8.19.2 - ~/.nvm/versions/node/v18.12.1/bin/npm
pnpm: 7.18.1 - ~/.nvm/versions/node/v18.12.1/bin/pnpm
Describe the bug
When the server makes requests to endpoints and the endpoint responds with a redirect, the request is considered a failure. This causes issues with indexing endpoints, executing runs, and delivering webhook payloads. So basically nothing works if the endpoint responds with a redirect. For example, if the endpoint url was input as something like "https://foo.com/api/trigger" and when making a request to the endpoint the response is a 308 redirect to"https://www.foo.com/api/trigger".
Reproduction repo
N/A
To reproduce
Setup a new Next.js project with a Trigger.dev integration, and setup an endpoint that will redirect to the actual /api/trigger endpoint.
Additional information
No response