question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

404 when key contains slash

See original GitHub issue

I think this has the same root cause as #43, except I am using my own custom string with slash (tmp release/benchmark) and receives 404 when trying to save the cache.

https://github.com/alexlamsl/UglifyJS2/runs/287169751 404

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
zarennercommented, Nov 9, 2019

The fix for the / issue has been deployed: image

The fix for other special characters such as + and % is still in progress.

@alexlamsl @fsimonis while it’s true that there isn’t a replace expression function that would help here, you should be able to use ::set-output with sed or similar to do string replacement as a workaround. e.g.

    - name: Sanitize key
      id: sanitize-key
      run: echo "::set-output name=key::$(echo $key | sed 's/+/plus/g')"  
    - uses: actions/cache@v1
      with:
        key: ${{ steps.sanitize-key.outputs.key }}
        path: .

Not the most ideal workaround, but unless I’m misunderstanding hopefully that’ll work for you in the meantime!

2reactions
joshmgrosscommented, Nov 8, 2019

Just an update, we’re rolling out a fix on the server-side for this sometime today or early next week.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Trailing slash causes 404, can I fix using htaccess?
The first line says: "if it's not a directory" (because then a trailing slash would have meaning). The second line says: redirect everything...
Read more >
CloudFront / S3 returning 404 when no trailing slash : r/aws
It appears if I don't add a trailing slash, cloudfront or s3 just assuming I'm looking for testblog.html, which is a file that...
Read more >
S3 client doesn't handle object keys with leading or ...
Given object keys like //foo , or foo//bar , the S3 client reports a 404 not found error even when the key exists....
Read more >
Commit list returns 404 on branches whose names contain ...
Merge requests whose source branch name contains a forward slash suggested that the source branch did not exist ("source branch does not ...
Read more >
How can I troubleshoot the 404 "NoSuchKey" error ... - YouTube
How can I troubleshoot the 404 "NoSuchKey" error from Amazon S3? · Key moments. View all · Key moments · Description · Key...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found