npx truffle compile error malformed URL: ' ' Please specify a correct URL, using the http, https, ws

%3CLINGO-SUB%20id%3D%22lingo-sub-1579507%22%20slang%3D%22en-US%22%3Enpx%20truffle%20compile%20error%20malformed%20URL%3A%20'%20'%20Please%20specify%20a%20correct%20URL%2C%20using%20the%20http%2C%20https%2C%20ws%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1579507%22%20slang%3D%22en-US%22%3E%3CP%3EI%20received%20this%20error%20when%20right%20clicking%20HelloBlockchain.sol%20and%20selecting%20%22Build%20Contracts%22.%20npx%20truffle%20compile%20did%20not%20run.%20Can%20you%20help%20fix%20the%20URL%20problem%20so%20%22npx%20truffle%20compile%22%20will%20execute%20properly%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1660246%22%20slang%3D%22en-US%22%3ERe%3A%20npx%20truffle%20compile%20error%20malformed%20URL%3A%20'%20'%20Please%20specify%20a%20correct%20URL%2C%20using%20the%20http%2C%20https%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1660246%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F755234%22%20target%3D%22_blank%22%3E%40mctimmyamptgpcom%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20paste%20a%20copy%20of%20your%20truffle-config.js%2C%26nbsp%3B%20the%20issue%20might%20be%20in%20there%20somewhere.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1664736%22%20slang%3D%22en-US%22%3ERe%3A%20npx%20truffle%20compile%20error%20malformed%20URL%3A%20'%20'%20Please%20specify%20a%20correct%20URL%2C%20using%20the%20http%2C%20https%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1664736%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F755234%22%20target%3D%22_blank%22%3E%40mctimmyamptgpcom%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20find%20attached%20a%20copy%20of%20the%20error%20report.%20I%20am%20not%20able%20to%20proceed%20without%20spending%20%24%24%20because%20the%20Azure%20free%20trial%20period%20ended%20and%20I%20have%20not%20renewed%20it%20but%20if%20you%20have%20a%20fix%2C%20I%20would%20like%20to%20see%20it.%20Thanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1664738%22%20slang%3D%22en-US%22%3ERe%3A%20npx%20truffle%20compile%20error%20malformed%20URL%3A%20'%20'%20Please%20specify%20a%20correct%20URL%2C%20using%20the%20http%2C%20https%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1664738%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F791151%22%20target%3D%22_blank%22%3E%40Sankara_Tim%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20find%20attached%20a%20copy%20of%20the%20truffle-config.js.%20I%20am%20not%20able%20to%20proceed%20without%20spending%20%24%24%20because%20the%20Azure%20free%20trial%20period%20ended%20and%20I%20have%20not%20renewed%20it%20but%20if%20you%20have%20a%20fix%2C%20I%20would%20like%20to%20see%20it.%20Thanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I received this error when right clicking HelloBlockchain.sol and selecting "Build Contracts". npx truffle compile did not run. Can you help fix the URL problem so "npx truffle compile" will execute properly?

3 Replies

@mctimmyamptgpcom 

Please paste a copy of your truffle-config.js,  the issue might be in there somewhere.

@mctimmyamptgpcom 

Please find attached a copy of the error report. I am not able to proceed without spending $$ because the Azure free trial period ended and I have not renewed it but if you have a fix, I would like to see it. Thanks.

@Sankara_Tim 

Please find attached a copy of the truffle-config.js. I am not able to proceed without spending $$ because the Azure free trial period ended and I have not renewed it but if you have a fix, I would like to see it. Thanks.