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.

Delete file method fails using AWS EC2 image

See original GitHub issue

I set up my own gaia hub on AWS EC2 using the instructions and image specified in this tutorial:

https://docs.blockstack.org/storage/amazon-s3-deploy.html

When I to use blockstack.js’s deleteFile method, I get an error. Using listFile and examining the EC2 filesystem shows that the files aren’t deleted.

[DEBUG] connectToGaiaHub: https://gaia-review.newinternetlabs.com/hub_info
[ERROR] Error deleting file from Gaia hub: 404 Not Found: <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot DELETE /delete/1JvG8GVzm2jG4UugrFBcVx3qLxDA5oycWQ/test.txt</pre>
</body>
</html>

I’m using blockstack.js v19.2.1.

The relevant code is:

        await session.listFiles(async (file: any) => {
          console.log(`Deleting ${file}`)
          await session.deleteFile(file)
          return true
        }) 

I tried this same code with a Blockstack ID using the Blockstack PBC default gaia hub and delete works properly. This leads me to believe that there might be an issue with the gaia hub configuration in the docker image specified by the tutorial.

Let me know if I can provide any other information that might help.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
zone117xcommented, Oct 3, 2019

@wileyj any updates for this? Is it fixed?

0reactions
zone117xcommented, Feb 20, 2020

Closing this issue due to lack of activity. Please feel free to comment if this should be re-opened.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Delete file method fails using AWS EC2 image #242 - GitHub
When I to use blockstack.js's deleteFile method, I get an error. Using listFile and examining the EC2 filesystem shows that the files aren't ......
Read more >
Delete EC2 Image Builder resources - AWS Documentation
Deleting resources does not delete any Amazon EC2 AMIs or Amazon ECR container images that are created during the image build process.
Read more >
Troubleshoot EC2 Image Builder - AWS Documentation
EC2 Image Builder integrates with AWS services for monitoring and troubleshooting to help you troubleshoot image build issues. Image Builder tracks and ...
Read more >
Deleting a single object - Amazon Simple Storage Service
Using the S3 console. Follow these steps to use the Amazon S3 console to delete a single object from a bucket. Sign in...
Read more >
Deregister your AMI - Amazon Elastic ... - AWS Documentation
In the navigation pane, choose AMIs. Select the AMI to deregister, and take note of its ID—this can help you find the snapshots...
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