# Scan Receipt App error with img size and media db url

**URL:** https://community.thunkable.com/t/scan-receipt-app-error-with-img-size-and-media-db-url/2011219
**Category:** Questions about Thunkable X
**Created:** [August 23, 2022, 3:02pm UTC](https://community.thunkable.com/t/scan-receipt-app-error-with-img-size-and-media-db-url/2011219 "2022-08-23T15:02:53Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![coder1234567891](https://avatars.discourse-cdn.com/v4/letter/c/9e8a1a/32.png) [@coder1234567891](https://community.thunkable.com/u/coder1234567891)
#### Post date: [August 23, 2022, 3:02pm UTC](https://community.thunkable.com/t/scan-receipt-app-error-with-img-size-and-media-db-url/2011219/1 "2022-08-23T15:02:53Z")

</div>

Hi Everyone,  
I am having an issue. First I am creating a Scan Receipt App. I am NOT using the Drag and Drop version.  
Here’s my code :

 ![Capture15](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/8/68339eb70fa2e21739f695164b3e941bbd4eb5bc.png)

So the error is that it shows this :

 ![unnamed](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/5/a554a80fcda8063854b65b5fe155fca7be265d52.jpeg)

How do I solve this?

---

<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 23, 2022, 3:19pm UTC](https://community.thunkable.com/t/scan-receipt-app-error-with-img-size-and-media-db-url/2011219/2 "2022-08-23T15:19:04Z")

</div>

Try using the `green error block`

---

<div class="post-metadata">

### Author: ![coder1234567891](https://avatars.discourse-cdn.com/v4/letter/c/9e8a1a/32.png) [@coder1234567891](https://community.thunkable.com/u/coder1234567891)
#### Post date: [August 23, 2022, 3:23pm UTC](https://community.thunkable.com/t/scan-receipt-app-error-with-img-size-and-media-db-url/2011219/3 "2022-08-23T15:23:35Z")

</div>

Where do I use the green error block?

---

<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 23, 2022, 3:25pm UTC](https://community.thunkable.com/t/scan-receipt-app-error-with-img-size-and-media-db-url/2011219/4 "2022-08-23T15:25:37Z")

</div>

An example-

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

---

<div class="post-metadata">

### Author: ![coder1234567891](https://avatars.discourse-cdn.com/v4/letter/c/9e8a1a/32.png) [@coder1234567891](https://community.thunkable.com/u/coder1234567891)
#### Post date: [August 23, 2022, 3:28pm UTC](https://community.thunkable.com/t/scan-receipt-app-error-with-img-size-and-media-db-url/2011219/5 "2022-08-23T15:28:31Z")

</div>

Yeah, but I am trying so it scan the receipt and then it takes the information on the recipt and keeps it in the app. So you don’t have to find the receipt in your home. It is always in the app. By the way I am using the free thunkable and I am a beginner so I don’t understand much. So if this answer of mine does not make sense could you explain what the block are doing?

---

<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 23, 2022, 3:30pm UTC](https://community.thunkable.com/t/scan-receipt-app-error-with-img-size-and-media-db-url/2011219/6 "2022-08-23T15:30:29Z")

</div>

> [@coder1234567891](#):
>
> could you explain what the block are doing?

sure  
The error block notifies you what is the error you are receiving and you can use it with if  
statement.  
btw did you try the web url in a browser?

---

<div class="post-metadata">

### Author: ![coder1234567891](https://avatars.discourse-cdn.com/v4/letter/c/9e8a1a/32.png) [@coder1234567891](https://community.thunkable.com/u/coder1234567891)
#### Post date: [August 23, 2022, 3:31pm UTC](https://community.thunkable.com/t/scan-receipt-app-error-with-img-size-and-media-db-url/2011219/7 "2022-08-23T15:31:14Z")

</div>

Hold on. I did not try it in the browser. Give me a sec…

---

<div class="post-metadata">

### Author: ![coder1234567891](https://avatars.discourse-cdn.com/v4/letter/c/9e8a1a/32.png) [@coder1234567891](https://community.thunkable.com/u/coder1234567891)
#### Post date: [August 23, 2022, 3:33pm UTC](https://community.thunkable.com/t/scan-receipt-app-error-with-img-size-and-media-db-url/2011219/8 "2022-08-23T15:33:50Z")

</div>

What do I keep in the url section?  
[https://api.ocr.space/parse/imageurl?apikey=](https://api.ocr.space/parse/imageurl?apikey=) &url=

---

<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 23, 2022, 3:34pm UTC](https://community.thunkable.com/t/scan-receipt-app-error-with-img-size-and-media-db-url/2011219/9 "2022-08-23T15:34:34Z")

</div>

the entire url including the (api key)

---

<div class="post-metadata">

### Author: ![coder1234567891](https://avatars.discourse-cdn.com/v4/letter/c/9e8a1a/32.png) [@coder1234567891](https://community.thunkable.com/u/coder1234567891)
#### Post date: [August 23, 2022, 3:35pm UTC](https://community.thunkable.com/t/scan-receipt-app-error-with-img-size-and-media-db-url/2011219/10 "2022-08-23T15:35:18Z")

</div>

No. I mean in the" &url=" what url do I keep after the" = "

---

<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 23, 2022, 3:37pm UTC](https://community.thunkable.com/t/scan-receipt-app-error-with-img-size-and-media-db-url/2011219/11 "2022-08-23T15:37:39Z")

</div>

an image url example ([https://play-lh.googleusercontent.com/WgtKRr4z1afw87qy0AXDOTmdQvAKDxqHqM4AFmx7I0GEKgyrMX7wRl8kVM-rErRiDeUC](https://play-lh.googleusercontent.com/WgtKRr4z1afw87qy0AXDOTmdQvAKDxqHqM4AFmx7I0GEKgyrMX7wRl8kVM-rErRiDeUC))

---

<div class="post-metadata">

### Author: ![coder1234567891](https://avatars.discourse-cdn.com/v4/letter/c/9e8a1a/32.png) [@coder1234567891](https://community.thunkable.com/u/coder1234567891)
#### Post date: [August 23, 2022, 3:41pm UTC](https://community.thunkable.com/t/scan-receipt-app-error-with-img-size-and-media-db-url/2011219/12 "2022-08-23T15:41:59Z")

</div>

Okay. Give me 1 min to look at it

---

<div class="post-metadata">

### Author: ![coder1234567891](https://avatars.discourse-cdn.com/v4/letter/c/9e8a1a/32.png) [@coder1234567891](https://community.thunkable.com/u/coder1234567891)
#### Post date: [August 23, 2022, 3:43pm UTC](https://community.thunkable.com/t/scan-receipt-app-error-with-img-size-and-media-db-url/2011219/13 "2022-08-23T15:43:54Z")

</div>

When I type it in the browser it shows the same error :  
{“OCRExitCode”:99,“IsErroredOnProcessing”:true,“ErrorMessage”:[“Unable to recognize the file type”,“Unable to detect the file extension, or the file extension is incorrect, and no ‘file type’ provided in request. Please provide a file with a proper content type or extension, or provide a file type in the request to manually set the file extension.”],“ProcessingTimeInMilliseconds”:“0”}

---

<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 23, 2022, 3:44pm UTC](https://community.thunkable.com/t/scan-receipt-app-error-with-img-size-and-media-db-url/2011219/14 "2022-08-23T15:44:39Z")

</div>

can you share the `api documentation` of the api?

---

<div class="post-metadata">

### Author: ![coder1234567891](https://avatars.discourse-cdn.com/v4/letter/c/9e8a1a/32.png) [@coder1234567891](https://community.thunkable.com/u/coder1234567891)
#### Post date: [August 23, 2022, 3:45pm UTC](https://community.thunkable.com/t/scan-receipt-app-error-with-img-size-and-media-db-url/2011219/15 "2022-08-23T15:45:07Z")

</div>

Do you mean that i should share my app with you?

---

<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 23, 2022, 3:48pm UTC](https://community.thunkable.com/t/scan-receipt-app-error-with-img-size-and-media-db-url/2011219/18 "2022-08-23T15:48:34Z")

</div>

Sure I’ll try and let you know…

---

<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 23, 2022, 3:55pm UTC](https://community.thunkable.com/t/scan-receipt-app-error-with-img-size-and-media-db-url/2011219/19 "2022-08-23T15:55:57Z")

</div>

> [@coder1234567891](#):
>
> Also I can’t chat anymore

Yea sure

is this what you expect as a successful response ?

```auto
{"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"GAVE AWAY MY BOOK\r\nFREE ON\r\nREACHED TOP OF AMAZON\r\nBESTSELLER\r\n","ErrorMessage":"","ErrorDetails":""}],"OCRExitCode":1,"IsErroredOnProcessing":false,"ProcessingTimeInMilliseconds":"343","SearchablePDFURL":"Searchable PDF not generated as it was not requested."}

```

---

<div class="post-metadata">

### Author: ![coder1234567891](https://avatars.discourse-cdn.com/v4/letter/c/9e8a1a/32.png) [@coder1234567891](https://community.thunkable.com/u/coder1234567891)
#### Post date: [August 25, 2022, 6:11pm UTC](https://community.thunkable.com/t/scan-receipt-app-error-with-img-size-and-media-db-url/2011219/20 "2022-08-25T18:11:02Z")

</div>

Yes

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [November 23, 2022, 6:11pm UTC](https://community.thunkable.com/t/scan-receipt-app-error-with-img-size-and-media-db-url/2011219/21 "2022-11-23T18:11:35Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
