Giter Site home page Giter Site logo

Comments (7)

dineshk-qa avatar dineshk-qa commented on May 21, 2024 1

@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.

danielvianna avatar danielvianna commented on May 21, 2024

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.

agoldis avatar agoldis commented on May 21, 2024

@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.

dineshk-qa avatar dineshk-qa commented on May 21, 2024

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.

EddyQiu avatar EddyQiu commented on May 21, 2024

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.

EddyQiu avatar EddyQiu commented on May 21, 2024

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.

agoldis avatar agoldis commented on May 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.