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

"Could not download SVF: Request path contains unescaped characters" #28

Closed haifengas closed 4 years ago

haifengas commented 4 years ago

When I download svf is success and the source rvt file is english encode, but error when the source rvt is chinese encode forgetoolerror

petrbroz commented 4 years ago

Thank you for reporting this @haifengas. Let me look into it.

petrbroz commented 4 years ago

I tried uploading/translating a Revit file with Chinese characters, and was able to download the SVF successfully:

Screen Shot 2020-06-16 at 3 58 56 PM

Could you perhaps share your Revit file (confidentially) so that I could debug it locally?

petrbroz commented 4 years ago

Btw. if you don't want to share the file publicly, send us a link to the official Forge support email alias: forge (dot) help (at) autodesk (dot) com.

haifengas commented 4 years ago

OK, I have send you email with the rvt attachment, thank you!

petrbroz commented 4 years ago

Thank you for sharing the file! I've just tried it myself, and I've been able to download the SVF without any problems...

Screen Shot 2020-06-16 at 6 00 15 PM

Could you try uploading, translating, and downloading the Revit model one more time? And if you can still reproduce the issue, please use the Developer: Show Logs command in vscode, selecting the Extension Host log, to see if there is any additional information about the error. Thanks!

haifengas commented 4 years ago

I have translated and downloaded again, and get error again! I did not find some thing in the extension log:

[2020-06-17 00:04:47.649] [exthost] [info] extension host started
[2020-06-17 00:04:47.684] [exthost] [info] ExtensionService#_doActivateExtension vscode.typescript-language-features {"startup":false,"extensionId":{"value":"vscode.typescript-language-features","_lower":"vscode.typescript-language-features"},"activationEvent":"onLanguage:javascript"}
[2020-06-17 00:04:47.684] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Program Files/VSCode-win32-x64/resources/app/extensions/typescript-language-features/dist/extension
[2020-06-17 00:04:47.712] [exthost] [info] ExtensionService#_doActivateExtension vscode.debug-auto-launch {"startup":true,"extensionId":{"value":"vscode.debug-auto-launch","_lower":"vscode.debug-auto-launch"},"activationEvent":"*"}
[2020-06-17 00:04:47.712] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Program Files/VSCode-win32-x64/resources/app/extensions/debug-auto-launch/dist/extension
[2020-06-17 00:04:47.715] [exthost] [info] ExtensionService#_doActivateExtension vscode.emmet {"startup":true,"extensionId":{"value":"vscode.emmet","_lower":"vscode.emmet"},"activationEvent":"*"}
[2020-06-17 00:04:47.715] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Program Files/VSCode-win32-x64/resources/app/extensions/emmet/dist/extension
[2020-06-17 00:04:47.722] [exthost] [info] ExtensionService#_doActivateExtension vscode.git {"startup":true,"extensionId":{"value":"vscode.github","_lower":"vscode.github"},"activationEvent":"*"}
[2020-06-17 00:04:47.723] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Program Files/VSCode-win32-x64/resources/app/extensions/git/dist/main
[2020-06-17 00:04:47.735] [exthost] [info] ExtensionService#_doActivateExtension vscode.github-authentication {"startup":true,"extensionId":{"value":"vscode.github-authentication","_lower":"vscode.github-authentication"},"activationEvent":"*"}
[2020-06-17 00:04:47.735] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Program Files/VSCode-win32-x64/resources/app/extensions/github-authentication/dist/extension.js
[2020-06-17 00:04:47.745] [exthost] [info] ExtensionService#_doActivateExtension vscode.merge-conflict {"startup":true,"extensionId":{"value":"vscode.merge-conflict","_lower":"vscode.merge-conflict"},"activationEvent":"*"}
[2020-06-17 00:04:47.745] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Program Files/VSCode-win32-x64/resources/app/extensions/merge-conflict/dist/extension
[2020-06-17 00:04:47.748] [exthost] [info] ExtensionService#_doActivateExtension vscode.microsoft-authentication {"startup":true,"extensionId":{"value":"vscode.microsoft-authentication","_lower":"vscode.microsoft-authentication"},"activationEvent":"*"}
[2020-06-17 00:04:47.748] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Program Files/VSCode-win32-x64/resources/app/extensions/microsoft-authentication/dist/extension.js
[2020-06-17 00:04:47.757] [exthost] [info] ExtensionService#_doActivateExtension vscode.search-result {"startup":true,"extensionId":{"value":"vscode.search-result","_lower":"vscode.search-result"},"activationEvent":"*"}
[2020-06-17 00:04:47.757] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Program Files/VSCode-win32-x64/resources/app/extensions/search-result/dist/extension.js
[2020-06-17 00:04:47.759] [exthost] [info] ExtensionService#_doActivateExtension vscode.vscode-account {"startup":true,"extensionId":{"value":"vscode.vscode-account","_lower":"vscode.vscode-account"},"activationEvent":"*"}
[2020-06-17 00:04:47.759] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Program Files/VSCode-win32-x64/resources/app/extensions/vscode-account/dist/extension.js
[2020-06-17 00:04:47.973] [exthost] [error] Activating extension vscode.vscode-account failed due to an error:
[2020-06-17 00:04:47.976] [exthost] [error] Error: An authentication provider with id 'microsoft' is already registered.
    at t.ExtHostAuthentication.registerAuthenticationProvider (c:\Program Files\VSCode-win32-x64\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:635:856)
    at Object.registerAuthenticationProvider (c:\Program Files\VSCode-win32-x64\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:913:719)
    at t.activate (c:\Program Files\VSCode-win32-x64\resources\app\extensions\vscode-account\dist\extension.js:1:30056)
    at processTicksAndRejections (internal/process/task_queues.js:85:5)
    at async Promise.all (index 7)
    at async Promise.all (index 0)
[2020-06-17 00:04:48.002] [exthost] [info] ExtensionService#_doActivateExtension vscode.github {"startup":true,"extensionId":{"value":"vscode.github","_lower":"vscode.github"},"activationEvent":"*"}
[2020-06-17 00:04:48.002] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Program Files/VSCode-win32-x64/resources/app/extensions/github/dist/extension.js
[2020-06-17 00:04:48.130] [exthost] [info] eager extensions activated
[2020-06-17 00:06:20.826] [exthost] [info] ExtensionService#_doActivateExtension petrbroz.vscode-forge-tools {"startup":false,"extensionId":{"value":"petrbroz.vscode-forge-tools","_lower":"petrbroz.vscode-forge-tools"},"activationEvent":"onView:forgeDataManagementView"}
[2020-06-17 00:06:20.826] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/haifengas/.vscode/extensions/petrbroz.vscode-forge-tools-2.0.1/dist/extension.js
[2020-06-17 00:06:30.838] [exthost] [info] ExtensionService#_doActivateExtension vscode.extension-editing {"startup":false,"extensionId":{"value":"vscode.extension-editing","_lower":"vscode.extension-editing"},"activationEvent":"onLanguage:typescript"}
[2020-06-17 00:06:30.838] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Program Files/VSCode-win32-x64/resources/app/extensions/extension-editing/dist/extension
haifengas commented 4 years ago

I restarted pc and did it again this moring, now it works. Thank you!