Escape-Technologies / graphman

Quikly scaffold a postman collection for a GraphQL API. Compatible with Postman & Insomnia.
MIT License
240 stars 12 forks source link

In Windows it generates an empty file #46

Closed SyedAsimAliSE closed 1 year ago

SyedAsimAliSE commented 1 year ago

Did a fresh install of Deno , ran the server locally - and getting only this empty file am I missing something here ?

image

nohehf commented 1 year ago

Could you please retry using powershell rather than cmd? Are you sure you don't have any file at ~/Desktop/out/*.postman_collection.json?

SyedAsimAliSE commented 1 year ago

Yes Just tried with Power Shell and no luck, it just generates this empty localhost file.

image

nohehf commented 1 year ago

Ok, I believe the issue might come from the parsing of the : in the file name. Could you try to expose your api on the default HTTPS port and retry (so you'd have an address without :)? Could you also run the example on the rick and morty API (see README), to confirm it's not a windows related issue? If confirmed it will be an easy parse fix. However, if not I cannot currently try it on a windows machine. Thanks :)

SyedAsimAliSE commented 1 year ago

Yes indeed it's the : parsing thing, with out port number and : it is working perfect, and thanks man it saved me bunch of time writing long ass queries :D

image

nohehf commented 1 year ago

Glad it worked, will fix it today -> I'll add better parsing. My bad, this should have been working, but glad graphman helped you!