-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Upload failed. Reason = Response status code does not indicate success: 403 (Forbidden). #7
Comments
here is a detailed log of process : Das-report.txt |
@NitinMalave20 - Can you confirm that AWS Url is write-access enabled, did you test on uploading a zip file the aws url using some Restclient ? or with CURL? |
Hi @MadhukarMoogala, The bucket has public access but i have not checked with CURL or RestClient request. How should i test with CURL request? |
@NitinMalave20 - Assuming it is public url, I tried at my end, I got access denied 403. On curl it should be fairly straightforward.
Common root causes for
|
Hi @MadhukarMoogala, Thank you so much for the direction and response from your end. I really appreciate your help 😊 Actually issue was with S3 Presigned URL which i was creating through AWS CLI as a destination. It was throwing signature mismatch error even i followed this points:
I think the issue was with Presign URL generated through AWS CLI as per this article and they recommend to generate URL through SDK. What worked for me?
Thank you so much 😊. Now i am looking forward to integrate this code with C# lambda and microservices and i hope it will work as it is intended to be. Underlying tech-stack is :
|
@NitinMalave20 - I did something similar but on Azure Functions - https://github.com/MadhukarMoogala/da-azfunc Don't forget to bother us at [email protected] |
Hi @MadhukarMoogala, As per our last discussion, i tried to setup the code in C# microservice by creating a custom plugin to modify block attributes of drawing file and it worked as it intended. Getting the o/p in the S3 bucket from forge DAA. The next step is to fetch the file from S3 and pass it to frontend client so it can get downloaded in user's local system. We are trying to read a file from s3 with streamreader and then store it as string content, and pass this string content to Angular frontend where data is received as Blob object and then the file is getting saved with file-save. `
Frontend:
` Can you please tell me where i am doing wrong and what can be alternative approach to read the file content from backend to client? |
@NitinMalave20 - can write the stream to a file at server side, check if the chunk downloaded correctly without fragmentation.
Shouldn't it be I did something similar - |
Thank you @MadhukarMoogala for quick replies. Eventually i tried with above octet-stream header but it didn't worked as well What worked for me? I tried getting the presigned url of file on S3(o/p file from DAA to S3 bucket), i passed it to client and made http request at client side to download the file, and it worked!! Thanks & Regards, |
Hello Autodesk team & @szilvaa,
I am not sure whether this is the correct place to ask my query, but i would appreciate if get any help on this topic.
We have drawing file template (.dwg file) which has block attributes with default values. The goal is to fetch the template file, read & update block attributes of file with data and return the new instance of drawing file to client/frontend.
After lot of googling, we came across Autodesk forge design automation api and trying to use it for solving above problem. I watched your video tutorial and tried those steps by cloning this repo. Faced some minor issues related updated command syntax and fix those. But now i am stuck at the last stage where o/p of DAA should get uploaded to s3 bucket and the error is as below:
Created a presign S3 URL with AWS CLI by command : "aws s3 presign s3://bucket-name/result.zip --region us-west-2"
and replaced it with upload URL. Tried with another AWS account and it's credentials, but still getting the same error and not getting the final o/p's in S3.
I am attaching the entire log file as well for better understanding the problem.
How can i fix above issue and get the o/p result.zip in S3 bucket?
We want to move this entire code to microservices and C# lambda hosted on AWS, but before that we are testing it on standalone C# project. Can you please share any available resources/github repos/youtube videos/blogs which can help us with integration of DAA with serverless microservices & AWS?
The text was updated successfully, but these errors were encountered: