# API Connector error 400 on "PDF.co" for PDF-to-text conversion

**URL:** <https://forum.bubble.io/t/api-connector-error-400-on-pdf-co-for-pdf-to-text-conversion/295128>\
**Category:** APIs\
**Created:** [November 28, 2023, 2:18am UTC](https://forum.bubble.io/t/api-connector-error-400-on-pdf-co-for-pdf-to-text-conversion/295128 "2023-11-28T02:18:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul36](https://avatars.discourse-cdn.com/v4/letter/p/e5b9ba/32.png) [@paul36](https://forum.bubble.io/u/paul36)\
**Post date:** [November 28, 2023, 2:18am UTC](https://forum.bubble.io/t/api-connector-error-400-on-pdf-co-for-pdf-to-text-conversion/295128/1 "2023-11-28T02:18:11Z")

</div>

Can anyone see what I’m doing wrong here?

I’m trying to use the Bubble API Connector to make a call to [PDF.co](http://PDF.co) PDF-to-Text converter that would generate a text version of PDFs that my users upload to Bubble. I have followed the format that appears in the [Bubble API Connector tutorial](https://manual.bubble.io/help-guides/integrations/api/the-api-connector), the [PDF.co](http://PDF.co) [instruction video](https://www.youtube.com/watch?v=EkavUFpz0Gc), and the [PDF.co](http://PDF.co) documentation on the [Bubble.io](http://Bubble.io) API Connector. The resulting form looks like this:

 ![Screenshot 2023-11-27 at 6.09.47 PM](https://us1.discourse-cdn.com/bubble/original/3X/7/6/7637f27dd4ebf68f39a198c50f0bc226b6086f12.png)

However, with that, and several permutations of that, attempted both at [Bubble.io](http://Bubble.io) and in tests at [Postman.com](http://Postman.com), I’ve received the same 400 error as follows:

 ![Screenshot 2023-11-27 at 6.09.22 PM](https://us1.discourse-cdn.com/bubble/original/3X/1/b/1b59c6bba41dd82d08272e96b644b36fcbf855e9.png)

If anyone can spot what I’m doing wrong and how to get it right, I’d greatly appreciate it.

Thanks so much!

---

<div class="post-metadata">

**Author:** ![code-escapee](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/code-escapee/32/195485_2.png) [@code-escapee](https://forum.bubble.io/u/code-escapee)\
**Post date:** [November 28, 2023, 3:16am UTC](https://forum.bubble.io/t/api-connector-error-400-on-pdf-co-for-pdf-to-text-conversion/295128/2 "2023-11-28T03:16:38Z")

</div>

It seems the link is not accessible? I can’t see the value of the url but is it accessible? did you try a generic google drive doc as an alt? try quotes around the url value?

---

<div class="post-metadata">

**Author:** ![Boost](https://avatars.discourse-cdn.com/v4/letter/b/8e8cbc/32.png) [@Boost](https://forum.bubble.io/u/Boost)\
**Post date:** [November 28, 2023, 3:20am UTC](https://forum.bubble.io/t/api-connector-error-400-on-pdf-co-for-pdf-to-text-conversion/295128/3 "2023-11-28T03:20:40Z")

</div>

Your file might be private

---

<div class="post-metadata">

**Author:** ![paul36](https://avatars.discourse-cdn.com/v4/letter/p/e5b9ba/32.png) [@paul36](https://forum.bubble.io/u/paul36)\
**Post date:** [November 28, 2023, 4:06pm UTC](https://forum.bubble.io/t/api-connector-error-400-on-pdf-co-for-pdf-to-text-conversion/295128/4 "2023-11-28T16:06:09Z")

</div>

Thanks! That _is_ weird.

Are you referring to the link to the api ([https://api.pdf.co/v1/pdf/convert/to/text](https://api.pdf.co/v1/pdf/convert/to/text)) or the sample link to my Bubble data for translation ([//86a6365ce8adc37af942ae5347e7f843.cdn.bubble.io/f1701033482318x372329192966045250/KC-000997\_Onix\_2022Workspace\_ITDM\_Healthcare\_eBook\_r5a.pdf](https://86a6365ce8adc37af942ae5347e7f843.cdn.bubble.io/f1701033482318x372329192966045250/KC-000997_Onix_2022Workspace_ITDM_Healthcare_eBook_r5a.pdf))? That’s a file location stored in my app’s Bubble database.

For the call initiation doesn’t the URL have to be the same location (but not the same field) as what I will eventually connect to the API?
