# \[Solved\] how can I fix a 403 error using the WEB API

**URL:** <https://community.thunkable.com/t/solved-how-can-i-fix-a-403-error-using-the-web-api/2007685>\
**Category:** Web API's\
**Created:** [August 20, 2022, 4:49pm UTC](https://community.thunkable.com/t/solved-how-can-i-fix-a-403-error-using-the-web-api/2007685 "2022-08-20T16:49:26Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![tanishq](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tanishq/32/124339_2.png) [@tanishq](https://community.thunkable.com/u/tanishq)\
**Post date:** [August 20, 2022, 4:49pm UTC](https://community.thunkable.com/t/solved-how-can-i-fix-a-403-error-using-the-web-api/2007685/1 "2022-08-20T16:49:26Z")

</div>

Hello everyone 😀  
I am working on a geolocation app which uses this [api](https://positionstack.com/) .  
And when I run it I get a `403` error which is listed as no `HTTPS` access in the [documentation](https://positionstack.com/documentation#api_errors). Even though my web url starts with `HTTP` .  
**And it works fine in the browser as expected.**  
Is this a thunkable issue? or I have to make changes in my blocks?  
these are my blocks :-

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/1/814ab4430f75bceee57c813c164304f884f65731.png)

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

Thanks in advance.

---

<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:** [August 20, 2022, 6:07pm UTC](https://community.thunkable.com/t/solved-how-can-i-fix-a-403-error-using-the-web-api/2007685/2 "2022-08-20T18:07:23Z")

</div>

What is the value of the green error block? It looks like you’re displaying the green status block but we’d need to know what error you’re getting.

---

<div class="post-metadata">

**Author:** ![tanishq](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tanishq/32/124339_2.png) [@tanishq](https://community.thunkable.com/u/tanishq)\
**Post date:** [August 20, 2022, 6:29pm UTC](https://community.thunkable.com/t/solved-how-can-i-fix-a-403-error-using-the-web-api/2007685/3 "2022-08-20T18:29:51Z")

</div>

It does not give any error as when I put the green error block under `if-condition` the condition does not take place rather gives the `status`.

---

<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:** [August 20, 2022, 6:40pm UTC](https://community.thunkable.com/t/solved-how-can-i-fix-a-403-error-using-the-web-api/2007685/4 "2022-08-20T18:40:02Z")

</div>

Have you tried set Label11’s Text to [error] in the `then do` section ( **not** inside the `if` block)? When you do that, is there a value or is it blank?

---

<div class="post-metadata">

**Author:** ![tanishq](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tanishq/32/124339_2.png) [@tanishq](https://community.thunkable.com/u/tanishq)\
**Post date:** [August 20, 2022, 6:51pm UTC](https://community.thunkable.com/t/solved-how-can-i-fix-a-403-error-using-the-web-api/2007685/5 "2022-08-20T18:51:06Z")

</div>

by doing that I get the label as `undefined`…

---

<div class="post-metadata">

**Author:** ![zander](https://avatars.discourse-cdn.com/v4/letter/z/ecb155/32.png) [@zander](https://community.thunkable.com/u/zander)\
**Post date:** [August 20, 2022, 8:25pm UTC](https://community.thunkable.com/t/solved-how-can-i-fix-a-403-error-using-the-web-api/2007685/6 "2022-08-20T20:25:20Z")

</div>

Have you tried it in the companion app? Perhaps is a CORS issue?

---

<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:** [August 20, 2022, 11:07pm UTC](https://community.thunkable.com/t/solved-how-can-i-fix-a-403-error-using-the-web-api/2007685/7 "2022-08-20T23:07:03Z")

</div>

Even if your URL starts with **HTTP** , the `Web API` will force it to **HTTPS**. This is I think by design of the `Web API` component.

---

<div class="post-metadata">

**Author:** ![tanishq](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tanishq/32/124339_2.png) [@tanishq](https://community.thunkable.com/u/tanishq)\
**Post date:** [August 21, 2022, 6:49am UTC](https://community.thunkable.com/t/solved-how-can-i-fix-a-403-error-using-the-web-api/2007685/8 "2022-08-21T06:49:44Z")

</div>

Is there a way to bypass the issue?

---

<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:** [August 21, 2022, 7:03am UTC](https://community.thunkable.com/t/solved-how-can-i-fix-a-403-error-using-the-web-api/2007685/9 "2022-08-21T07:03:25Z")

</div>

See this post

> [@Web API http vs https](https://community.thunkable.com/t/web-api-http-vs-https/853891):
>
> I am calling a http GET Web API to my flask server. However the server always receives “https” even though the URL is “http”. Is http not supported at all? or is it an advanced option?

---

<div class="post-metadata">

**Author:** ![tanishq](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tanishq/32/124339_2.png) [@tanishq](https://community.thunkable.com/u/tanishq)\
**Post date:** [August 21, 2022, 7:05am UTC](https://community.thunkable.com/t/solved-how-can-i-fix-a-403-error-using-the-web-api/2007685/10 "2022-08-21T07:05:34Z")

</div>

What are browser developer tools?

---

<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:** [August 21, 2022, 7:21am UTC](https://community.thunkable.com/t/solved-how-can-i-fix-a-403-error-using-the-web-api/2007685/11 "2022-08-21T07:21:35Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tanishq](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tanishq/32/124339_2.png) [@tanishq](https://community.thunkable.com/u/tanishq)\
**Post date:** [August 21, 2022, 11:56am UTC](https://community.thunkable.com/t/solved-how-can-i-fix-a-403-error-using-the-web-api/2007685/12 "2022-08-21T11:56:44Z")

</div>

I tried the test in my iPhone and it works great. but while live testing it in a pc the status is `403`. Anyways  
solved… thanks @tatiang@muneer 😀

---

<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:** [August 21, 2022, 2:05pm UTC](https://community.thunkable.com/t/solved-how-can-i-fix-a-403-error-using-the-web-api/2007685/13 "2022-08-21T14:05:03Z")

</div>

That is great. It means that the developers of Thunkable have solved the earlier reported issue even if it wasn’t a complete solution as you have experienced.

Happy Thunking!

---

<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:12pm UTC](https://community.thunkable.com/t/solved-how-can-i-fix-a-403-error-using-the-web-api/2007685/14 "2024-11-08T13:12:57Z")

</div>


