# Problem loading json url

**URL:** <https://discourse.processing.org/t/problem-loading-json-url/21898>\
**Category:** Beginners\
**Created:** [June 15, 2020, 9:07pm UTC](https://discourse.processing.org/t/problem-loading-json-url/21898 "2020-06-15T21:07:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![maddyna](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@maddyna](https://discourse.processing.org/u/maddyna)\
**Post date:** [June 15, 2020, 9:07pm UTC](https://discourse.processing.org/t/problem-loading-json-url/21898/1 "2020-06-15T21:07:06Z")

</div>

> function setup() {  
> createCanvas(400, 400);  
> let url=‘[http://api.open-notify.org/iss-now.json](http://api.open-notify.org/iss-now.json)’;  
> loadJSON(url,drawEarthquakes,‘jsonp’);  
> }

function draw() {  
background(220);  
}  
function drawEarthquakes(earthquakes){  
print(earthquakes);

}

error message:\> p5.js says: It looks like there was a problem loading your json. Try checking if the file path [[http://api.open-notify.org/iss-now.json](http://api.open-notify.org/iss-now.json)] is correct, or running a local server.[[Local server · processing/p5.js Wiki · GitHub](https://github.com/processing/p5.js/wiki/Local-server)]

I have seen that the path name is correct  
can someone suggest whr I am going wrong and how to work it out  
I have seen a similar question but was not able to follow the discussion  
So srry fr the inconvenience  
\<\>

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [June 15, 2020, 10:16pm UTC](https://discourse.processing.org/t/problem-loading-json-url/21898/2 "2020-06-15T22:16:25Z")

</div>

> **[JSON Open-Notify ISS](http://bl.ocks.org/GoSubRoutine/7a567f0510b338b6d0fc1ef53f24f10e)**
>
> GoSubRoutine’s Block 7a567f0510b338b6d0fc1ef53f24f10e

---

<div class="post-metadata">

**Author:** ![maddyna](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@maddyna](https://discourse.processing.org/u/maddyna)\
**Post date:** [June 16, 2020, 6:21pm UTC](https://discourse.processing.org/t/problem-loading-json-url/21898/3 "2020-06-16T18:21:19Z")

</div>

sorry for being naive I am no able to make out from the suggestion put forward.  
the problem persists

> p5.js says: It looks like there was a problem loading your json. Try checking if the file path [[https://samples.openweathermap.org/data/2.5/weather?q=London&appid=439d4b804bc8187953eb36d2a8c26a02](https://samples.openweathermap.org/data/2.5/weather?q=London&appid=439d4b804bc8187953eb36d2a8c26a02)] is correct, or running a local server.[[Local server · processing/p5.js Wiki · GitHub](https://github.com/processing/p5.js/wiki/Local-server)] \<

I am working in p5js web editor  
the source code provided in the reference is working fine  
but whenever i am putting th url i am getting this error  
Thanks

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [June 16, 2020, 7:20pm UTC](https://discourse.processing.org/t/problem-loading-json-url/21898/4 "2020-06-16T19:20:09Z")

</div>

> **[OpenWeatherMapJSON](https://bl.ocks.org/GoSubRoutine/5fbc03e019c53254a2ba7e7fd3318b45)**
>
> GoSubRoutine’s Block 5fbc03e019c53254a2ba7e7fd3318b45
