docgen icon indicating copy to clipboard operation
docgen copied to clipboard

2020/11/17 21:24:17 parsing json filejson: cannot unmarshal string into Go struct field Request.url of type collection.URL

Open zhy1 opened this issue 4 years ago • 8 comments

2020/11/17 21:24:17 parsing json filejson: cannot unmarshal string into Go struct field Request.url of type collection.URL

zhy1 avatar Nov 17 '20 13:11 zhy1

@zhy1 did you generated the json from post using 2.1 version?

arturgoms avatar Dec 14 '20 16:12 arturgoms

I get this same error when attempting to generate from a backup JSON file that I have syncing to a repo. Would be great if this supported generating from backups so it could be automated whenever there's an update to a collection.

christianklemp-imt avatar Mar 23 '21 20:03 christianklemp-imt

SOLVED:- i had the same error. But exporting the postman collection with version 2.1 (recommended) , solved the error is my case.

mayowDev avatar May 17 '21 09:05 mayowDev

SOLVED:- i had the same error. But exporting the postman collection with version 2.1 (recommended) , solved the error is my case.

This actually works

GoodnessEzeokafor avatar Jun 04 '21 13:06 GoodnessEzeokafor

SOLVED:- i had the same error. But exporting the postman collection with version 2.1 (recommended) , solved the error is my case.

Worked For me Too. If you have end level nested folders, it's better to seperate them.

smark-ARK avatar Jun 01 '23 03:06 smark-ARK

Can someone help me out, getting this error: 2023/10/25 11:50:49 parsing json filejson: cannot unmarshal object into Go struct field Field.item.item.response.header.description of type string

martin-creator avatar Oct 25 '23 08:10 martin-creator