petrbroz / vscode-forge-tools

Visual Studio Code extension for accessing Autodesk Forge services and content.
https://marketplace.visualstudio.com/items?itemName=petrbroz.vscode-forge-tools
MIT License
74 stars 17 forks source link

can't get information of bucket #14

Closed davidyugang closed 4 years ago

davidyugang commented 4 years ago

when i used the tool in vscode, i have setted the clienid and secrect key, when i click the bucket, i can't get any informtion ,the tool promted as following : Could not load objects or buckets: {"message":"Client network socket disconnected before secure TLS connection was established","name":"Error","stack":"Error: Client network socket disconnected before secure TLS connection was established\n\tat connResetException (internal/errors.js:559:14)\n\tat TLSSocket.onConnectEnd (_tls_wrap.js:1355:19)\n\tat Object.onceWrapper (events.js:288:20)\n\tat TLSSocket.emit (events.js:205:15)\n\tat endReadableNT (_stream_readable.js:1154:12)\n\tat processTicksAndRejections (internal/process/task_queues.js:84:9)","config":{"url":"https://developer.api.autodesk.com/oss/v2/buckets?region=US&startAt=qwtttt","method":"get","headers":{"Accept":"application/json, text/plain, /","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsImtpZCI6Imp3dF9zeW1tZXRyaWNfa2V5In0.eyJjbGllbnRfaWQiOiJ2ZXRCUFhYcEVNS1JIbHAzcWs4U2dua3F1eE9oQTFqYSIsImV4cCI6MTU4MjIwOTE2MSwic2NvcGUiOlsiYnVja2V0OnJlYWQiLCJkYXRhOnJlYWQiXSwiYXVkIjoiaHR0cHM6Ly9hdXRvZGVzay5jb20vYXVkL2p3dGV4cDYwIiwianRpIjoidGlxZ1hUQ0NmNDRhNWUxSzhmQ3JBUTc0R2owY0VtOE4xREMwejRzZUY2UG1YV2o5VHRKUUZmVVBRa0VvTTFnNSJ9.rgE8_P7BDnahgWfNila2lSjHarMt-VR8eIqeTbyGJmo","User-Agent":"axios/0.19.0"},"baseURL":"https://developer.api.autodesk.com/oss/v2/","transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1},"code":"ECONNRESET"}

petrbroz commented 4 years ago

I don't think this is a bug in the extension. From the error message it looks like your computer was having internet connection problems while the extension was trying to communicate with Forge servers.

Also, be careful about sharing these type of logs on the internet. The access token you posted above (the "Authorization" header) could potentially be exploited by a 3rd party.

davidyugang commented 4 years ago

petrbroz hi,thank your help and remind ,i will try agin and be careful the informaiton in the internet and i will keep in touch with you.

petrbroz commented 4 years ago

Alright :) Let me close this issue, and if there's still issues, we can reopen it.