# Web Requests Gone Missing

**URL:** <https://community.appfarm.io/t/web-requests-gone-missing/1128>\
**Category:** Ask the community\
**Created:** [March 22, 2024, 9:03am UTC](https://community.appfarm.io/t/web-requests-gone-missing/1128 "2024-03-22T09:03:17Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![martinbarthel](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/martinbarthel/32/541_2.png) [@martinbarthel](https://community.appfarm.io/u/martinbarthel)\
**Post date:** [March 22, 2024, 9:03am UTC](https://community.appfarm.io/t/web-requests-gone-missing/1128/1 "2024-03-22T09:03:17Z")

</div>

Hi!

We are struggling a bit with web requests. A bit too often the action node throws an error saying that the request was sent, but no response was received. The request is sent to a Cloud Run service on Google Cloud Platform, there are no traces of the request in the logs on this service.

Does anyone have any tips on how to fix this?

---

<div class="post-metadata">

**Author:** ![Simona](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/simona/32/201_2.png) [@Simona](https://community.appfarm.io/u/Simona)\
**Post date:** [March 25, 2024, 8:56am UTC](https://community.appfarm.io/t/web-requests-gone-missing/1128/2 "2024-03-25T08:56:25Z")

</div>

Hi @martinbarthel ,

Thank you for sharing your situation! While I’m not specifically experienced with Cloud Run, I’d suggest a few strategies to help pinpoint the issue:

- Confirm that your Cloud Run service’s expected headers and HTTP methods are correctly implemented. Incorrect or missing headers often cause requests to be declined before reaching your application.
- Look into the timeout settings to ensure they’re not too brief, leading to premature termination of requests. This is particularly vital if your service experiences longer startup times from a cold start.
- Use Postman to send requests, which can help determine if the problem is unique to your current setup in Create.
- If Cloud Run allows, enable more detailed logging to obtain clearer insights into operational flows and identify potential bottlenecks or errors.

I hope this helps you resolve your issue!

---

<div class="post-metadata">

**Author:** ![martinbarthel](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/martinbarthel/32/541_2.png) [@martinbarthel](https://community.appfarm.io/u/martinbarthel)\
**Post date:** [April 4, 2024, 1:54pm UTC](https://community.appfarm.io/t/web-requests-gone-missing/1128/3 "2024-04-04T13:54:38Z")

</div>

Hi @Simona !

I have looked more into it and it does not look like the problem is because of Google Cloud Platform but rather the “Generate Document”-action on Appfarm. This is the action that after some debugging throws the ApiRequestError. Here is a screenshot of the console:

 ![Screenshot 2024-04-04 at 15.53.52](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/5/5ed5adb2678e6a3a017b9bd11e9feaac827ad367.png)

---

<div class="post-metadata">

**Author:** ![Simona](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/simona/32/201_2.png) [@Simona](https://community.appfarm.io/u/Simona)\
**Post date:** [April 8, 2024, 7:13am UTC](https://community.appfarm.io/t/web-requests-gone-missing/1128/4 "2024-04-08T07:13:29Z")

</div>

Hi @martinbarthel

I found the error message in our [documentation](https://docs.appfarm.io/reference/appfarm-client/warnings-and-errors#response-to-preflight-request-doesnt-pass-access-control-check-no-access-control-allow-origin-header). Could you try to add `.appfarm.app` to the list of accepted domains in your Google Cloud Platform and check if that helps?

---

<div class="post-metadata">

**Author:** ![martinbarthel](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/martinbarthel/32/541_2.png) [@martinbarthel](https://community.appfarm.io/u/martinbarthel)\
**Post date:** [April 8, 2024, 7:38am UTC](https://community.appfarm.io/t/web-requests-gone-missing/1128/5 "2024-04-08T07:38:21Z")

</div>

I am not sure why that will help. The Generate Document action node seems to reject the requests, and the web requests to our application on GCP seem to have been executed successfully. It looks like this because it is the `https://pdf-service.appfarm.io/api/v1/generate` that has been blocked, and this action node would not have been reached if an exception was thrown when requesting our GCP app.

Could you explain why adding `.appfarm.app` on our GCP app would help and what’s wrong with my understanding?

---

<div class="post-metadata">

**Author:** ![kristian](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/kristian/32/58_2.png) [@kristian](https://community.appfarm.io/u/kristian)\
**Post date:** [April 9, 2024, 8:31am UTC](https://community.appfarm.io/t/web-requests-gone-missing/1128/6 "2024-04-09T08:31:00Z")

</div>

Hi @martinbarthel !

We are inspecting whether this is related to the scalability of the PDF service - can you provide us with a bit of info on

- Does this happen every time?
- Do you have any timestamps when this has happened recently (for us to inspect the logs)?

-kristian

---

<div class="post-metadata">

**Author:** ![martinbarthel](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/martinbarthel/32/541_2.png) [@martinbarthel](https://community.appfarm.io/u/martinbarthel)\
**Post date:** [April 9, 2024, 9:05am UTC](https://community.appfarm.io/t/web-requests-gone-missing/1128/7 "2024-04-09T09:05:36Z")

</div>

Hi @kristian !

This does not happen every time, it usually happens for the first users trying to generate a PDF on a given day.

I have some timestamps (DD.MM.YYYY HH:MM):

- 08.04.2024 08:00
- 03.04.2024 08:57
- 26.03.2024 15:21
- 26.03.2024 15:19
- 26.03.2024 05:34
- 21.03.2024 11:05
- 14.03.2024 11:10
- 13.03.2024 11:53
- 13.03.2024 10:22

Sorry for not specifying the seconds, we do not have that saved.

---

<div class="post-metadata">

**Author:** ![martinbarthel](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/martinbarthel/32/541_2.png) [@martinbarthel](https://community.appfarm.io/u/martinbarthel)\
**Post date:** [April 23, 2024, 10:56am UTC](https://community.appfarm.io/t/web-requests-gone-missing/1128/8 "2024-04-23T10:56:18Z")

</div>

Hi, @kristian!  
Did you find any issues on your part or is it something we need to look into?

---

<div class="post-metadata">

**Author:** ![kristian](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/kristian/32/58_2.png) [@kristian](https://community.appfarm.io/u/kristian)\
**Post date:** [April 23, 2024, 12:28pm UTC](https://community.appfarm.io/t/web-requests-gone-missing/1128/9 "2024-04-23T12:28:17Z")

</div>

Hi!

Sorry for not responding. We have found some improvements regarding the scalability of the PDF generation service. Those are in implementation, so this will hopefully be improved soon!

---

<div class="post-metadata">

**Author:** ![martinbarthel](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/martinbarthel/32/541_2.png) [@martinbarthel](https://community.appfarm.io/u/martinbarthel)\
**Post date:** [May 21, 2024, 12:33pm UTC](https://community.appfarm.io/t/web-requests-gone-missing/1128/10 "2024-05-21T12:33:59Z")

</div>

Hi @kristian ! We are still facing these issues… Do you have an estimate of when the improvements are implemented?

---

<div class="post-metadata">

**Author:** ![kristian](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/kristian/32/58_2.png) [@kristian](https://community.appfarm.io/u/kristian)\
**Post date:** [May 22, 2024, 10:47am UTC](https://community.appfarm.io/t/web-requests-gone-missing/1128/11 "2024-05-22T10:47:15Z")

</div>

Hello!

I just spoke to the team. The fix related to PDF creator scalability issues is planned for next week! I’ll keep you posted.

Kristian
