NEWS
[gelöst] - TypeError: Converting circular structure to JSON
-
async function test() { const url = 'https://nominatim.openstreetmap.org/reverse?lat=52.5487429714954&lon=-1.81602098644987&format=json'; log(url); axios.get(url).then(function (response) { log(response); }); }
Warum erhalte ich hier einen
TypeError: Converting circular structure to JSON
???Kann mir da mal bitte jemand Licht ans Fahrrad machen?
-
Kaum macht man's richtig, funktionierts auch
log(response.data);
-
subobjekte von repsonse enthalten wieder referenzen auf sich oder ein anderes objekt in der hierarchie. das führt zu einer endlosschleife in der ausgabe.