aps-simple-viewer-nodejs icon indicating copy to clipboard operation
aps-simple-viewer-nodejs copied to clipboard

Feature (New SDk)

Open Arrotech opened this issue 1 year ago • 3 comments

What does this PR do?

Migrate the simple viewer tutorial to use the new sdk

Arrotech avatar Feb 12 '24 11:02 Arrotech

Thank you @Arrotech. I'm reviewing this PR now. Btw I'm not going to merge this one directly because it still contains lots of ballast (hundreds of files being removed and added) but I'm creating a new branch based on your changes.

One thing I've noticed is that there's a lots of debug logs output to console when using the new SDKs, e.g.:

Server listening on port 8080...
info: 22-02-2024 10:45:54:      Entered into fetchtoken 
info: 22-02-2024 10:45:54:      fetchtoken Request completed successfully with status code: 200
info: 22-02-2024 10:45:54:      Entered into fetchtoken 
info: 22-02-2024 10:45:54:      fetchtoken Request completed successfully with status code: 200
info: 22-02-2024 10:45:54:      Entered into getBucketDetails 
info: 22-02-2024 10:45:55:      getBucketDetails Request completed successfully with status code: 200
info: 22-02-2024 10:45:55:      Entered into fetchtoken 
info: 22-02-2024 10:45:55:      fetchtoken Request completed successfully with status code: 200
info: 22-02-2024 10:45:55:      Entered into getObjects 
info: 22-02-2024 10:45:56:      getObjects Request completed successfully with status code: 200
info: 22-02-2024 10:45:56:      Entered into getObjects 
info: 22-02-2024 10:45:56:      getObjects Request completed successfully with status code: 200
info: 22-02-2024 10:45:56:      Entered into fetchtoken 
info: 22-02-2024 10:45:57:      fetchtoken Request completed successfully with status code: 200
info: 22-02-2024 10:45:57:      Entered into getManifest 
info: 22-02-2024 10:45:57:      getManifest Request completed successfully with status code: 200

Is that intentional?

petrbroz avatar Feb 22 '24 09:02 petrbroz

Also, it looks like the upload functionality might be broken. When uploading a Revit file, the upload process seems to have finished successfully, but when trying to translate the design, I get the following error:

Screenshot 2024-02-22 at 10 53 30

EDIT:

After some more investigation, it looks like the uploaded file is missing 1 byte. On my local filesystem the Revit file has 6344704 bytes, but in the OSS bucket it has 6344703 bytes.

petrbroz avatar Feb 22 '24 09:02 petrbroz

Btw the simplified version of this PR is tracked in https://github.com/autodesk-platform-services/aps-simple-viewer-nodejs/tree/new-sdk.

petrbroz avatar Feb 22 '24 09:02 petrbroz

Closing. The code has already been updated to the latest beta version of the SDKs.

petrbroz avatar Nov 13 '24 12:11 petrbroz