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

[WAR] Upload archive may return a 301 #825

Open
EtienneM opened this issue Nov 29, 2022 · 2 comments
Open

[WAR] Upload archive may return a 301 #825

EtienneM opened this issue Nov 29, 2022 · 2 comments

Comments

@EtienneM
Copy link
Member

EtienneM commented Nov 29, 2022

Deploying a WAR archive on the staging infrastructure returns an error due to a 301 Moved Permantently redirection when uploading the WAR archive:

DEBUG=1 sscalingo --app biniou deploy --war ./geoserver.war

[DEBUG]2022/11/29 09:46:03 [Regions] Use the cache
[DEBUG]2022/11/29 09:46:03 [detect] App name is biniou
-----> Deploying WAR archive: ./geoserver.war
[DEBUG]2022/11/29 09:46:03 [API] POST https://<REDACTED>/v1/tokens/exchange
[DEBUG]2022/11/29 09:46:03       User Agent: Scalingo CLI v1.26.1
[DEBUG]2022/11/29 09:46:03       Headers: map[User-Agent:[Scalingo CLI v1.26.1]]
[DEBUG]2022/11/29 09:46:03       Params: map[]
[DEBUG]2022/11/29 09:46:04       Request ID: dc2f1011-2200-48d8-8880-37585172e74c
[DEBUG]2022/11/29 09:46:04       Duration: 114.899975ms
[DEBUG]2022/11/29 09:46:04 [API] POST https://<REDACTED>/v1/sources
[DEBUG]2022/11/29 09:46:04       User Agent: Scalingo CLI v1.26.1
[DEBUG]2022/11/29 09:46:04       Headers: map[User-Agent:[Scalingo CLI v1.26.1]]
[DEBUG]2022/11/29 09:46:04       Params: map[]
[DEBUG]2022/11/29 09:46:04       Request ID: b148100a-df25-4cff-88ef-fb21ab603736
[DEBUG]2022/11/29 09:46:04       Duration: 849.568079ms
[DEBUG]2022/11/29 09:46:04 {"source":{"upload_url":"https://scalingo-api-sources-XXX.s3.eu-west-3.amazonaws.com/76/76ae65a2-6733-454e-953c-c45d22392254?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=<REDACTED>","download_url":"https://scalingo-api-sources-osc-st-fr1.s3.eu-west-3.amazonaws.com/76/76ae65a2-6733-454e-953c-c45d22392254?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=<REDACTED>"}}
-----> Uploading archive…
[DEBUG]2022/11/29 09:46:07 Uploading archive to  https://scalingo-api-sources-XXX.s3.eu-west-3.amazonaws.com/76/76ae65a2-6733-454e-953c-c45d22392254?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=<REDACTED> with headers map[Content-Type:[application/x-gzip]]
 !     An error occurred:
[DEBUG]2022/11/29 09:46:08 [{/home/runner/work/cli/cli/deployments/deploy_war.go:93: wrong status code after upload 301 Moved Permanently}]
       wrong status code after upload 301 Moved Permanently

The surprising thing is that it works in prod...

@ipfaze
Copy link
Contributor

ipfaze commented Oct 27, 2023

Does this issue happens everytime on staging or it is randomly return 301?

@EtienneM
Copy link
Member Author

Yes, every time in staging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants