# Trouble with QR Code Scanner App

**URL:** <https://community.thunkable.com/t/trouble-with-qr-code-scanner-app/1019139>\
**Category:** Questions about Thunkable X\
**Created:** [December 4, 2020, 2:55am UTC](https://community.thunkable.com/t/trouble-with-qr-code-scanner-app/1019139 "2020-12-04T02:55:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![thetomofsyndicatesq5](https://avatars.discourse-cdn.com/v4/letter/t/f05b48/32.png) [@thetomofsyndicatesq5](https://community.thunkable.com/u/thetomofsyndicatesq5)\
**Post date:** [December 4, 2020, 2:55am UTC](https://community.thunkable.com/t/trouble-with-qr-code-scanner-app/1019139/1 "2020-12-04T02:55:35Z")

</div>

Hey guys,

I’ve been working on an App to read QR codes and I have been following along with this tutorial:  
[https://blog.thunkable.com/creating-a-qr-scanner-app-in-thunkable-x-c292479c5e9e](https://blog.thunkable.com/creating-a-qr-scanner-app-in-thunkable-x-c292479c5e9e)  
Currently my app crashes once an image is uploaded, can anybody help to figure out why?

> **[Thunkable](https://x.thunkable.com/copy/2c8ddac147bf67e3d47a20830c97f22f)**

Thanks

---

<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:** [December 4, 2020, 3:18am UTC](https://community.thunkable.com/t/trouble-with-qr-code-scanner-app/1019139/2 "2020-12-04T03:18:57Z")

</div>

You’re doing a lot without managing the green error blocks. It’s important to check the value of those. Typically, you would have an If [error] block that sets the value of a label to [error] and then in the Else area, you’d have main blocks for that part.

Your JSON parsing looks correct to me so I’d be curious about the values of the error blocks.

See this: [https://docs.thunkable.com/media-db](https://docs.thunkable.com/media-db).

Also, did you set the API key, etc.? Because in the project you linked above, it just says “default” for all of those values. I’m not sure if that’s just Thunkable hiding your private information when you share a project but if you haven’t set those – there’s your problem.

---

<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:** [December 4, 2020, 3:30am UTC](https://community.thunkable.com/t/trouble-with-qr-code-scanner-app/1019139/3 "2020-12-04T03:30:16Z")

</div>

With a little more investigation (mainly from the error blocks values), I got this JSON result by typing the url you’re using followed by the long media url from the app screen into a browser:

[{“type”:“qrcode”,“symbol”:[{“seq”:0,“data”:null,“error”:“download error ( **file is too big** )”}]}]

Also, from their API documentation for the “file” parameter:

> An image file (e.g. a photo), which contains the QR code to read, as direct upload for the API (only possible by using a HTTP POST request).

You’re using a **GET** request but they require a **POST** request.

---

<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, 12:20pm UTC](https://community.thunkable.com/t/trouble-with-qr-code-scanner-app/1019139/4 "2024-11-08T12:20:02Z")

</div>


