Comments (7)
@agoldis actually our S3 bucket was hosted in ap-southeast-2 and we were not setting the region and it was taking the default value, so we had that issue.
It just coincided with your changes :)
All working fine now after the above fix, I can see images/videos in the dashboard.
Thanks for so quick response & fix.
from sorry-cypress.
I have the exact issue before then disappeared after 2 days - no clue what is causing on a specific machine, and on another one, it never happened (both are windows)
If you upload a file via postman (or similar tool) does the Amazon S3 API works fine?
from sorry-cypress.
@dineshk-qa thanks for reporting the issue! Would be useful to run the failed tests locally with similar settings with DEBUG=cypress:*
env variable to see if there are more details from cypress agent.
from sorry-cypress.
Here is Cypress in DEBUG mode
cypress:server:record failed to upload artifact { file: 'source/cypress-poc/cypress/screenshots/2_gift_cards_spec.js/Gift Cards Page Tests -- iframe demo - buy gift cards (failed).png', stack: 'StatusCodeError: 400 - "<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\\n<Error><Code>InvalidArgument</Code><Message></Message><ArgumentName>x-amz-acl</ArgumentName><ArgumentValue>ap-southeast-2</ArgumentValue><RequestId>xxxxx</RequestId> <HostId>xxxxxxxxx</HostId> </Error>
Getting 400 due to Invalid argument > x-amz-acl: ap-southeast-2
@danielvianna - Yes uploading through postman is working fine, but I have checked using my user not that role
from sorry-cypress.
I've found something interesting in the docker.io/agoldis/sorry-cypress-director
image in the path /app/src/screenshots/s3
# cat config.ts export const S3_BUCKET = process.env.S3_BUCKET || 'sorry-cypress'; export const S3_REGION = process.env.S3_REGION || 'us-east-1'; export const S3_ACL = process.env.S3_REGION || 'public-read'; export const S3_READ_URL_PREFIX = process.env.S3_READ_URL_PREFIX || null;
Does the S3_ACL need to be set to a region?
Because when I set the S3_REGION to ap-southeast-2 it will also change the S3_ACL to ap-southeast-2 when we want it to be 'public-read'
Thanks,
Eddy
from sorry-cypress.
I believe the fix for this would be just to change the line
export const S3_ACL = process.env.S3_REGION || 'public-read';
to be:
export const S3_ACL = process.env.S3_ACL || 'public-read';
from sorry-cypress.
There was a bug introduced in the latests release. Should be fixed in https://github.com/agoldis/sorry-cypress/releases/tag/v0.2.5.
@dineshk-qa Please tell me if that somehow resolves the issue, because the issue was opened before the bug was introduced 😃
from sorry-cypress.
Related Issues (20)
- No test running with false positive, "Group X has different specs for the same run. Make sure each group in run has the same specs." HOT 1
- Support Test Replay HOT 7
- MongoDB driver update HOT 3
- Something wrong about the useGetTestsFromProject() method when using --group command line parameter. HOT 3
- a problem opening the dashboard before everything worked fine
- Resolve CVE-2023-37903 vulnerability HOT 9
- With Cypress 13.2.0 error on run page: Cannot return null for non-nullable field InstanceStats.wallClockDuration HOT 2
- AWS DocumentDB connections broken when using retryable writes HOT 3
- Unable to run Cypress tests on gitlab using cypress-cloud HOT 11
- Add buttons to activate/deactivate project background color and see project running spec. HOT 2
- Unable to start Docker image HOT 2
- MongoError: Authentication failed. HOT 4
- Support filtering in Slack hook HOT 4
- Result not displayed on sorry cypress always failed HOT 6
- Consider Renaming project HOT 8
- Publish via post processing HOT 5
- Uploading screenshots to azure blob storage HOT 4
- Support Playwright HOT 12
- Add Teams Hook event 'Finished with the failed tests' HOT 3
- Rerun Failed Tests Not Only From Gitlab CI Specific Job HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sorry-cypress.