Autorest: Failed to load default-configuration.md with special User name character

Created on 5 Jul 2017  路  8Comments  路  Source: Azure/autorest

In My case I got this error:

Error: Failed to load 'file:///C:/Users/P%C3%A9terHerbel/.autorest/plugins/autorest/1.1.0/node_modules/autorest-core/resources/default-configuration.md' (NotFoundError: File does not exist at the specified endpoint)
    at Object.<anonymous> (C:\Users\P茅terHerbel\.autorest\plugins\autorest\1.1.0\node_modules\autorest-core\lib\ref\uri.js:43:19)
    at Generator.throw (<anonymous>)
    at rejected (C:\Users\P茅terHerbel\AppData\Roaming\npm\node_modules\autorest\lib\polyfill.min.js:15:69)
    at <anonymous>

I assume that the problem is the path encoding because the file is exsits here:

C:/Users/P茅terHerbel/.autorest/plugins/autorest/1.1.0/node_modules/autorest-core/resources/default-configuration.md

Could you provider a workaround to solve my problem before the fix?

All 8 comments

Tracked down the issue to one of our dependencies. Filed an issue there.

Thanks @olydis !

I see the dependency have been fixed.

Any chance to release this fix with 1.1.1 ?

Ah thanks for opening the issue against file-uri-to-path, was just about to do the same 馃槃
Depending on the version bump in file-uri-to-path, it might even be in version 1.1.0 AutoRest retroactively, otherwise, I'll update our dependency ASAP. So 1.1.1 should contain it (next AutoRest release is on July 12), but most likely it'll be in our nightlies before that.

Thanks @olydis
Please ping me if I can check the fix with nightlies build.

If the dependency isn't fixed tomorrow (we'll publish an AutoRest release), I'll make AutoRest depend on a fixed fork of node-get-uri instead. 馃憤

@olydis Thanks
It works with the nightly build.

@pherbel Cool, thanks for verifying! We've also just made a stable release.

Was this page helpful?
0 / 5 - 0 ratings