# Return PDF from MAKE

**URL:** <https://community.glideapps.com/t/return-pdf-from-make/72155>\
**Category:** Ask for Help\
**Created:** [March 29, 2024, 8:42am UTC](https://community.glideapps.com/t/return-pdf-from-make/72155 "2024-03-29T08:42:02Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andreea\_Nisipeanu](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/andreea_nisipeanu/32/62787_2.png) [@Andreea\_Nisipeanu](https://community.glideapps.com/u/Andreea_Nisipeanu)\
**Post date:** [March 29, 2024, 8:42am UTC](https://community.glideapps.com/t/return-pdf-from-make/72155/1 "2024-03-29T08:42:02Z")

</div>

Hello!

I want to return a pdf from Make to Glide. I’ve tried with http but it doesn’t return anything in glide. Can someone tell me what I am doing wrong?

Thanks!

 ![Screenshot 2024-03-29 104116](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/b/1b21c6284b42520d24b4591d2d7cd57a687cfe15.png)  
 ![Screenshot 2024-03-29 104151](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/4/645cfd337acefae10538f13436f848c578e59907.png)

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [March 29, 2024, 8:46am UTC](https://community.glideapps.com/t/return-pdf-from-make/72155/2 "2024-03-29T08:46:00Z")

</div>

What does the output bundle of your HTTP module look like?

---

<div class="post-metadata">

**Author:** ![Andreea\_Nisipeanu](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/andreea_nisipeanu/32/62787_2.png) [@Andreea\_Nisipeanu](https://community.glideapps.com/u/Andreea_Nisipeanu)\
**Post date:** [March 29, 2024, 8:59am UTC](https://community.glideapps.com/t/return-pdf-from-make/72155/3 "2024-03-29T08:59:45Z")

</div>

@Darren_Murphy

 ![Screenshot 2024-03-29 105934](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/5/e55baf937d77c5831a28e27b14c1855dd04e5bee.png)

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [March 29, 2024, 9:08am UTC](https://community.glideapps.com/t/return-pdf-from-make/72155/4 "2024-03-29T09:08:52Z")

</div>

Okay, so Status code 400 indicates an error.  
Click at the top right and select “Download Output Bundles” - then you’ll be able to see more details of the error.

 ![CleanShot 2024-03-29 at 17.07.31@2x](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/6/f6cc285a9bd0e3acf7a6045e45a25fc00d79817f.jpeg)

---

<div class="post-metadata">

**Author:** ![Andreea\_Nisipeanu](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/andreea_nisipeanu/32/62787_2.png) [@Andreea\_Nisipeanu](https://community.glideapps.com/u/Andreea_Nisipeanu)\
**Post date:** [March 29, 2024, 9:13am UTC](https://community.glideapps.com/t/return-pdf-from-make/72155/5 "2024-03-29T09:13:05Z")

</div>

[  
{  
“statusCode”: 400,  
“headers”: [  
{  
“name”: “date”,  
“value”: “Fri, 29 Mar 2024 08:29:27 GMT”  
},  
{  
“name”: “content-type”,  
“value”: “text/html; charset=utf-8”  
},  
{  
“name”: “transfer-encoding”,  
“value”: “chunked”  
},  
{  
“name”: “connection”,  
“value”: “close”  
},  
{  
“name”: “cf-ray”,  
“value”: “86be7e04a94479e2-DUB”  
},  
{  
“name”: “cf-cache-status”,  
“value”: “DYNAMIC”  
},  
{  
“name”: “access-control-allow-origin”,  
“value”: “\*”  
},  
{  
“name”: “cache-control”,  
“value”: “no-store”  
},  
{  
“name”: “strict-transport-security”,  
“value”: “max-age=2592000”  
},  
{  
“name”: “content-security-policy”,  
“value”: “default-src ‘none’”  
},  
{  
“name”: “x-content-type-options”,  
“value”: “nosniff”  
},  
{  
“name”: “x-edge-cache-status”,  
“value”: “MISS”  
},  
{  
“name”: “x-edge-origin-cache-control”,  
“value”: “no-store”  
},  
{  
“name”: “x-fly-region”,  
“value”: “cf-DUB”  
},  
{  
“name”: “x-frame-options”,  
“value”: “SAMEORIGIN”  
},  
{  
“name”: “x-origin-cf-cache-status”,  
“value”: “DYNAMIC”  
},  
{  
“name”: “x-powered-by”,  
“value”: “Express”  
},  
{  
“name”: “x-robots-tag”,  
“value”: “noindex”  
},  
{  
“name”: “server”,  
“value”: “cloudflare”  
},  
{  
“name”: “alt-svc”,  
“value”: “h3=":443"; ma=86400”  
}  
],  
“cookieHeaders”: ,  
“data”: “\n\<html lang="en"\>\n\n\<meta charset="utf-8"\>\nError\n\n\n

```
SyntaxError: Unexpected token } in JSON at position 298
   at JSON.parse (<anonymous>)
   at parse (/glide/node_modules/.pnpm/<a href="/cdn-cgi/l/email-protection" class=" **cf\_email**" data-cfemail="a3c1ccc7da8ed3c2d1d0c6d1e3928d91938d92">[email protected]/node_modules/body-parser/lib/types/json.js:89:19)
   at /glide/node_modules/.pnpm/<a href="/cdn-cgi/l/email-protection" class=" **cf\_email**" data-cfemail="52303d362b7f22332021372012637c60627c63">[email protected]/node_modules/body-parser/lib/read.js:128:18
   at AsyncResource.runInAsyncScope (node:async_hooks:203:9)
   at invokeCallback (/glide/node_modules/.pnpm/<a href="/cdn-cgi/l/email-protection" class=" **cf\_email**" data-cfemail="5c2e3d2b713e3338251c6e7269726d">[email protected]/node_modules/raw-body/index.js:231:16)
   at done (/glide/node_modules/.pnpm/<a href="/cdn-cgi/l/email-protection" class=" **cf\_email**" data-cfemail="671506104a0508031e275549524956">[email protected]/node_modules/raw-body/index.js:220:7)
   at IncomingMessage.onEnd (/glide/node_modules/.pnpm/<a href="/cdn-cgi/l/email-protection" class=" **cf\_email**" data-cfemail="5426352379363b302d14667a617a65">[email protected]/node_modules/raw-body/index.js:280:7)
   at IncomingMessage.emit (node:events:525:35)
   at endReadableNT (node:internal/streams/readable:1358:12)
   at processTicksAndRejections (node:internal/process/task_queues:83:21)
```
\n\<script data-cfasync="false" src="/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js"\>\n\n”,  
“fileSize”: 1808  
}  
]

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [March 29, 2024, 9:17am UTC](https://community.glideapps.com/t/return-pdf-from-make/72155/6 "2024-03-29T09:17:34Z")

</div>

Okay, your JSON is malformed.  
Actually, I think I see the problem. You have an extra comma after the curly bracket with your name column value. Remove that and it will most likely work.

---

<div class="post-metadata">

**Author:** ![Andreea\_Nisipeanu](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/andreea_nisipeanu/32/62787_2.png) [@Andreea\_Nisipeanu](https://community.glideapps.com/u/Andreea_Nisipeanu)\
**Post date:** [March 29, 2024, 9:29am UTC](https://community.glideapps.com/t/return-pdf-from-make/72155/7 "2024-03-29T09:29:09Z")

</div>

Thanks! That was a problem. But now the status code is 200

[  
{  
“statusCode”: 200,  
“headers”: [  
{  
“name”: “date”,  
“value”: “Fri, 29 Mar 2024 09:27:30 GMT”  
},  
{  
“name”: “content-type”,  
“value”: “application/json; charset=utf-8”  
},  
{  
“name”: “content-length”,  
“value”: “4”  
},  
{  
“name”: “connection”,  
“value”: “close”  
},  
{  
“name”: “cf-ray”,  
“value”: “86bed3070e5b56d8-DUB”  
},  
{  
“name”: “cf-cache-status”,  
“value”: “DYNAMIC”  
},  
{  
“name”: “access-control-allow-origin”,  
“value”: “\*”  
},  
{  
“name”: “cache-control”,  
“value”: “no-store”  
},  
{  
“name”: “etag”,  
“value”: “W/"4-TplQofIwX1bTWMrSPyggP7Oqy+8"”  
},  
{  
“name”: “strict-transport-security”,  
“value”: “max-age=2592000”  
},  
{  
“name”: “access-control-allow-headers”,  
“value”: “Content-Type,Authorization,X-Glide-Attempt,Fly-Customer-Request-Id”  
},  
{  
“name”: “access-control-allow-methods”,  
“value”: “GET,POST,OPTIONS”  
},  
{  
“name”: “access-control-max-age”,  
“value”: “3600”  
},  
{  
“name”: “x-edge-cache-status”,  
“value”: “MISS”  
},  
{  
“name”: “x-edge-origin-cache-control”,  
“value”: “no-store”  
},  
{  
“name”: “x-fly-region”,  
“value”: “cf-DUB”  
},  
{  
“name”: “x-frame-options”,  
“value”: “SAMEORIGIN”  
},  
{  
“name”: “x-glide-deployment-version”,  
“value”: “f75e5a13731973f9cbaedd39f8ffaef2c25fb163”  
},  
{  
“name”: “x-origin-cf-cache-status”,  
“value”: “DYNAMIC”  
},  
{  
“name”: “x-powered-by”,  
“value”: “Express”  
},  
{  
“name”: “x-robots-tag”,  
“value”: “noindex”  
},  
{  
“name”: “server”,  
“value”: “cloudflare”  
},  
{  
“name”: “alt-svc”,  
“value”: “h3=":443"; ma=86400”  
}  
],  
“cookieHeaders”: ,  
“data”: “[{}]”,  
“fileSize”: 4  
}  
]

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [March 29, 2024, 9:32am UTC](https://community.glideapps.com/t/return-pdf-from-make/72155/8 "2024-03-29T09:32:54Z")

</div>

200 is what you want. Was the value in the table updated?

---

<div class="post-metadata">

**Author:** ![Andreea\_Nisipeanu](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/andreea_nisipeanu/32/62787_2.png) [@Andreea\_Nisipeanu](https://community.glideapps.com/u/Andreea_Nisipeanu)\
**Post date:** [March 29, 2024, 9:35am UTC](https://community.glideapps.com/t/return-pdf-from-make/72155/9 "2024-03-29T09:35:04Z")

</div>

No. It doesn’t return anything in table

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [March 29, 2024, 9:38am UTC](https://community.glideapps.com/t/return-pdf-from-make/72155/10 "2024-03-29T09:38:44Z")

</div>

Check the input bundle of your HTTP module - make sure you’re actually sending a value.

---

<div class="post-metadata">

**Author:** ![Andreea\_Nisipeanu](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/andreea_nisipeanu/32/62787_2.png) [@Andreea\_Nisipeanu](https://community.glideapps.com/u/Andreea_Nisipeanu)\
**Post date:** [March 29, 2024, 9:48am UTC](https://community.glideapps.com/t/return-pdf-from-make/72155/11 "2024-03-29T09:48:47Z")

</div>

Thanks! The value was updated in table. But it doesn’t return the pdf link. When i press on the link it shows me an error from Google (error 403). Do you know what’s from? Maybe I think I have to put another module in make (google drive-download a file) or I have to replace the value I want to return (now I have Web content link)

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [March 29, 2024, 10:03am UTC](https://community.glideapps.com/t/return-pdf-from-make/72155/12 "2024-03-29T10:03:11Z")

</div>

Depends what you want. You could try the Web View Link instead, but you also need to ensure that the permissions on the file are such that anyone with the link can view.

---

<div class="post-metadata">

**Author:** ![Andreea\_Nisipeanu](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/andreea_nisipeanu/32/62787_2.png) [@Andreea\_Nisipeanu](https://community.glideapps.com/u/Andreea_Nisipeanu)\
**Post date:** [March 29, 2024, 10:43am UTC](https://community.glideapps.com/t/return-pdf-from-make/72155/13 "2024-03-29T10:43:25Z")

</div>

It works with Web View Link. Now in the app i want to show that document with web embed but it say about the google restriction. With the image component it shows the content but i wanted the web embed because a document it might have more pages and i want to scroll in the doc.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [March 29, 2024, 2:46pm UTC](https://community.glideapps.com/t/return-pdf-from-make/72155/14 "2024-03-29T14:46:19Z")

</div>

> [@Black screen when try to enlarge image](https://community.glideapps.com/t/black-screen-when-try-to-enlarge-image/15687/21):
>
> I believe this is where I found the info: I set up a template column like this: https://docs.google.com/viewer?embedded=true&url={Document} And then I have a replacement set up to replace {Document} with the url of the PDF. I also have it set up to show images and website links, so right now I also have an If Then column set up to search for ‘.PDF’ in the url and if it has it, then I use the wrapped version of the URL. Otherwise I just use the URL in it’s original form. Just a word of c…

You may try this old trick.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [April 5, 2024, 2:46pm UTC](https://community.glideapps.com/t/return-pdf-from-make/72155/15 "2024-04-05T14:46:29Z")

</div>

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