# Strange '404' status for correct API information

**URL:** <https://community.thunkable.com/t/strange-404-status-for-correct-api-information/1139065>\
**Category:** Questions about Thunkable X\
**Created:** [March 3, 2021, 7:43am UTC](https://community.thunkable.com/t/strange-404-status-for-correct-api-information/1139065 "2021-03-03T07:43:45Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [March 3, 2021, 7:43am UTC](https://community.thunkable.com/t/strange-404-status-for-correct-api-information/1139065/1 "2021-03-03T07:43:45Z")

</div>

Today, I was using the OpenWeatherMap API, and when I live tested it, with all the error handlings(if not error, if status = 200), and it gave back a status of 404. I pasted the URL of the WEB API inti my browser, and got a valid response.  
Here’s my URL:  
[http://api.openweathermap.org/data/2.5/weather?q=Bangalore&appid=MY\_API\_KEY](http://api.openweathermap.org/data/2.5/weather?q=Bangalore&appid=MY_API_KEY)

This is my code:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/a/ca13e7db92acb44b6f4019cd83a7088f9bde6bc3.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/9/79157d47fbc321f9ad423b30b0a5ba1a34daf38a.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/f/8f8826fc9c4a34f1feeca0a5c63e046a0f6a6062.png)

This is my valid JSON resposne:  
{“coord”:{“lon”:77.6033,“lat”:12.9762},“weather”:[{“id”:800,“main”:“Clear”,“description”:“clear sky”,“icon”:“01d”}],“base”:“stations”,“main”:{“temp”:303.23,“feels\_like”:296.71,“temp\_min”:302.04,“temp\_max”:304.15,“pressure”:1016,“humidity”:18},“visibility”:8000,“wind”:{“speed”:7.2,“deg”:70},“clouds”:{“all”:6},“dt”:1614756841,“sys”:{“type”:1,“id”:9205,“country”:“IN”,“sunrise”:1614733476,“sunset”:1614776330},“timezone”:19800,“id”:1277333,“name”:“Bengaluru”,“cod”:200}

In the JSON formatter:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/d/ad423bb5a67821036d3a595a1a744a3cef79f856.png)

Why am I receiving 404 in my text input?

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [March 3, 2021, 8:37am UTC](https://community.thunkable.com/t/strange-404-status-for-correct-api-information/1139065/2 "2021-03-03T08:37:39Z")

</div>

The url ([http://api.openweathermap.org/data/2.5/weather?q=Bangalore&appid=MY\_API\_KEY](http://api.openweathermap.org/data/2.5/weather?q=Bangalore&appid=MY_API_KEY)) works for me. It might be that you left out the **https://** in the “Web\_API OpenmapAPI’s URL” block.

Just curious… what is the 3 second wait for. I wouldn’t think it would be needed.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [March 3, 2021, 10:07am UTC](https://community.thunkable.com/t/strange-404-status-for-correct-api-information/1139065/3 "2021-03-03T10:07:15Z")

</div>

According to the open weather map web site

 ![Screenshot_20210303_130526](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/b/bb69766624c9972e1a1c6fbfcf026d285538761d.jpeg)

The city name is not spelled as expected.

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [March 3, 2021, 10:53am UTC](https://community.thunkable.com/t/strange-404-status-for-correct-api-information/1139065/4 "2021-03-03T10:53:32Z")

</div>

I’ve tried every single spelling. There are 3:  
Bangalore  
Bangalore  
Bengaluru

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [March 3, 2021, 1:28pm UTC](https://community.thunkable.com/t/strange-404-status-for-correct-api-information/1139065/5 "2021-03-03T13:28:05Z")

</div>

That’s my debug method… It’s meant so that I have enough time to copy the URL from the input and paste it in my browser so I can check if anything’s wrong.

**Edit** @tatiang You were right! I didn’t add the https://. As soon as I did, it worked. I just copied whta they had on their site:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/f/3f188abd3774a30fcf8ca5c1443d47032195d862.png)

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [March 4, 2021, 1:27pm UTC](https://community.thunkable.com/t/strange-404-status-for-correct-api-information/1139065/6 "2021-03-04T13:27:37Z")

</div>

And now it’s crashing again. This time, I’m using lat and lon from the location sensor:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/4/b44897fb99adf351a46a5796eeee848614492f63.png)

I know the block which is making it crash:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/f/7f424817c1b257587dd3414025e9641d18f5e37d.png) ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/f/7f424817c1b257587dd3414025e9641d18f5e37d.png)  
As soon as I remove that, it doesn’t crash. I’m not getting any error values or status- it’s just crashing. What’s wrong?

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [March 4, 2021, 1:29pm UTC](https://community.thunkable.com/t/strange-404-status-for-correct-api-information/1139065/7 "2021-03-04T13:29:28Z")

</div>

It seems that there is a problem in the system

See this comment

> [@\[Solved\] How do I parse JSON Object](https://community.thunkable.com/t/problem-parsing-json-object/1140945/7):
>
> I think there is a general problem with the get object from JSON block. I got this reply from thunkable support earlier today: Hi Claus, thanks for reporting this. It seems that the ‘get property of object’ block works fine when working directly with an object, so there may be an issue with the ‘get object from JSON’ block. I’ll ask the team to take a look.

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [March 4, 2021, 1:30pm UTC](https://community.thunkable.com/t/strange-404-status-for-correct-api-information/1139065/8 "2021-03-04T13:30:03Z")

</div>

Thanks… checking it out

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [March 4, 2021, 1:32pm UTC](https://community.thunkable.com/t/strange-404-status-for-correct-api-information/1139065/9 "2021-03-04T13:32:38Z")

</div>

Surprisingly, it was working fine just yesterday… I hope this gets fixed soon

---

<div class="post-metadata">

**Author:** ![jane](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jane/32/27575_2.png) [@jane](https://community.thunkable.com/u/jane)\
**Post date:** [March 5, 2021, 9:26am UTC](https://community.thunkable.com/t/strange-404-status-for-correct-api-information/1139065/10 "2021-03-05T09:26:47Z")

</div>

Hi there,

As mentioned in this thread, there was an issue with the ‘get object from JSON’ block.

I would like to confirm that the issue was resolved within a few hours, so your API blocks should behave as expected again.

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [March 5, 2021, 10:55am UTC](https://community.thunkable.com/t/strange-404-status-for-correct-api-information/1139065/11 "2021-03-05T10:55:47Z")

</div>

Yes, it is working well now. Thanks!

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:29pm UTC](https://community.thunkable.com/t/strange-404-status-for-correct-api-information/1139065/12 "2024-11-08T13:29:04Z")

</div>


