0

I am using AWS S3 to store my f2d, manifest and metadata files. My AWS S3 bucket is public so that I can access these file using their URL. Now I tried to load a model using myViewer.loadModel(AWS_Url, opts); , and got Bad Request error. Does anyone have any idea what I might have gone wrong?

This is the error I am getting.

Thank You,

ketan shinde
  • 212
  • 2
  • 10
  • Not exactly sure the reason of the issue, can not tell much from the response. Please check my colleague's code pen at https://codepen.io/gonzomustang/pen/WXwNdz , he is load the model from github.io, it works fine as expected. – Zhong Wu Nov 26 '17 at 03:58
  • I will give it a try. Thank You. – ketan shinde Nov 27 '17 at 06:55

1 Answers1

0

Add more information and make this as official reply. Yes, the viewer can open files directly from S3, without your viewer code, there is not much information that can be got from the response, maybe you can try this way:

myViewer.start(AWS_Url, opts)

Please also check the sample that load f2d from S3 at https://developer.api.autodesk.com/viewingservice/v1/viewers/viewer3d.html?v=3.2.*&svf=https://lmv-models.s3.amazonaws.com/2d_model/primaryGraphics.f2d

Zhong Wu
  • 1,721
  • 1
  • 8
  • 9