Delete file method fails using AWS EC2 image
See original GitHub issueI 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:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@wileyj any updates for this? Is it fixed?
Closing this issue due to lack of activity. Please feel free to comment if this should be re-opened.