aps-simple-viewer-nodejs
aps-simple-viewer-nodejs copied to clipboard
Feature (New SDk)
What does this PR do?
Migrate the simple viewer tutorial to use the new sdk
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?
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:
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.
Btw the simplified version of this PR is tracked in https://github.com/autodesk-platform-services/aps-simple-viewer-nodejs/tree/new-sdk.
Closing. The code has already been updated to the latest beta version of the SDKs.