Closed MoMannn closed 2 years ago
Experiencing this as well.
Any progress on this? I find this quite critical...
I also had an issue with it, fixed it by changing AWS region. By default it always uses us-east-1, and there are only debug logs if upload fails. So it's hard to know what is the issue
Can find this piece of code in aws.ts and change region, which is hardcoded
export async function awsUpload(
awsS3Bucket: string,
image: string,
animation: string,
manifestBuffer: Buffer,
) {
const REGION = 'us-east-1'; // TODO: Parameterize this.
awsUpload
This didn't fix it for me. Tried creating a new bucket on us-east-1 and use that one and still not working.
Does the upload work for you on the v2 metaplex?
Finally able to fix this.
In the uploadFile function this log should be changed to info so that you can get the error:
try {
await s3Client.send(new PutObjectCommand(mediaUploadParams));
} catch (err) {
log.debug('Error', err);
}
The problem was that ACL has to be enabled. This not noted anywhere in the documentation.
I would recommend adding this to documentation + changing the log.debug
to log.info
in the catch.
I dont even find where to put my access key and secret key. tried to put it in the .env but couldnt find where they load it if it ever loaded at all. ideas?
Which package is this bug report for?
candy machine cli
Issue description
I am trying to upload assets to aws. I set the correct bucket and storage in the config.
The upload goes through and the validate upload as well. But not assets are actually uploaded to the bucket. There are no errors. The bucket is set to public and correct aws keys are used.
I believe this is a high priority issue since I cannot launch a collection.
Command
Relevant log output
Operating system
mac os
Priority this issue should have
High (immediate attention needed)
Check the Docs First