allegro / allegro-api

Issue tracker and wiki for Allegro REST API
https://developer.allegro.pl/
213 stars 39 forks source link

Problem z połączeniem z make.com #9486

Open danior10 opened 1 month ago

danior10 commented 1 month ago

Występuje problem:

:beetle: Opis / Description Korzystam z narzędzia no-code make.com. Do niedawna bez problemu wysyłałem zapytania do Allegro API. Jakiś czas temu coś przestało działać. Wysyłając zapytania z postmana lub z własnego serwera VPS wszystko jest ok. Zmieniając region w make.com na US również problem nie występuje.

Próbując wysłać zapytanie do API otrzymuję komunikat ECONNRESET: Service is temporarily unavailable. Wygląda to tak jakby serwery Allegro API blokowały europejskie serwery make.com. Wysyłam adresy tych serwerów. Proszę o sprawdzenie. 34.254.1.9 52.31.156.93 52.50.32.186

I am using the no-code make.com tool. Until recently, I was sending queries to Allegro API without any problem. Some time ago something stopped working. Sending queries from postman or from my own VPS server everything is ok. Changing the region in make.com to US also the problem does not occur.

Trying to send a query to the API I get a message ECONNRESET: Service is temporarily unavailable. It looks as if the Allegro API servers are blocking the European make.com servers. I am sending the addresses of these servers. Please check. 34.254.1.9 52.31.156.93 52.50.32.186

AureliuszBrussy commented 1 month ago

Czy możesz podać dokładne timestamp'y przykładowych requestów? Czy jesteś w stanie dostarczyć przykładowy curl ze wszystkimi nagłówkami?

stale[bot] commented 1 month ago

W tym wątku nie pojawiła się żadna nowa odpowiedź w ciągu 7 dni, dlatego automatycznie oznaczamy go jako przeterminowany. Jeśli w ciągu kolejnych 7 dni nie pojawi się żadna odpowiedź, wątek zostanie zamknięty. Dziękujemy za zaangażowanie w dyskusję i zachęcamy Cię do wypełnienia ankiety dotyczącej naszego wsparcia na forum.


There was no new reply in this thread within 7 days, therefore, we automatically marked it as expired. If no response is received within the next 7 days, this thread will be closed. Thank you for engaging in the discussion. We encourage you to complete our forum support survey.

radiogena commented 2 weeks ago

Występuje problem:

  • [x] z zasobem REST API / with a REST API resource
  • [ ] ze środowiskiem produkcyjnym / with the production environment
  • [ ] ze środowiskiem testowym / with the test environment
  • [ ] z logowaniem lub autoryzacją / with login or authorization
  • [ ] na portalu https://developer.allegro.pl/ / at https://developer.allegro.pl/en/
  • [ ] inny / other

🪲 Opis / Description Korzystam z narzędzia no-code make.com. Do niedawna bez problemu wysyłałem zapytania do Allegro API. Jakiś czas temu coś przestało działać. Wysyłając zapytania z postmana lub z własnego serwera VPS wszystko jest ok. Zmieniając region w make.com na US również problem nie występuje.

Próbując wysłać zapytanie do API otrzymuję komunikat ECONNRESET: Service is temporarily unavailable. Wygląda to tak jakby serwery Allegro API blokowały europejskie serwery make.com. Wysyłam adresy tych serwerów. Proszę o sprawdzenie. 34.254.1.9 52.31.156.93 52.50.32.186

I am using the no-code make.com tool. Until recently, I was sending queries to Allegro API without any problem. Some time ago something stopped working. Sending queries from postman or from my own VPS server everything is ok. Changing the region in make.com to US also the problem does not occur.

Trying to send a query to the API I get a message ECONNRESET: Service is temporarily unavailable. It looks as if the Allegro API servers are blocking the European make.com servers. I am sending the addresses of these servers. Please check. 34.254.1.9 52.31.156.93 52.50.32.186

any news, update on this? having same issue

AureliuszBrussy commented 2 weeks ago

Can you send details that the author of the thread did not send? Please send IP addresses, timestamps of sample requests, and sample curl with all headers.

radiogena commented 2 weeks ago

Hello @AureliuszBrussy

The documentation mentions that while making a request to the API endpoint, you have to mention the right environment. Upon checking Swagger API documentation it mentioned that for the production server the environment is allegro.pl, and for the sandbox, it is allegro.pl.allegrosandbox.pl

There seems to be an error in the response, which indicates that the request to the Allegro API (or Allegro's sandbox environment) is being blocked, likely due to a security measure such as a CAPTCHA or a bot detection mechanism. Please check this error message from your side API support. I attached the API logs below from make.com. I hope they can help you understand what to check next.

{ "response": { "status": 403, "headers": { "content-length": "459", "content-type": "text/html", "x-frame-options": "SAMEORIGIN", "strict-transport-security": "max-age=15552000", "set-cookie": [ "_cmuid=92d44c60-9827-4088-b85e-cad6ca550bcc; Expires=Sun, 28 Sep 2025 07:03:05 GMT; Path=/; Domain=.allegro.pl.allegrosandbox.pl; Secure", "datadome=kya3owsYxtOR71TqfwcdXXFVinXlN3f40MTWghZg1fwpCmU2DZCKtAghLjHEuj4lzudB6MX19_pfbJdjfsicOkux2m9u2S~ZS9u3SEi27s2O7DYh~JU~vXKVuyJJh8dL; Max-Age=31536000; Domain=.allegrosandbox.pl; Path=/; Secure; SameSite=Lax" ], "accept-ch": "Sec-CH-UA,Sec-CH-UA-Mobile,Sec-CH-UA-Platform,Sec-CH-UA-Arch,Sec-CH-UA-Full-Version-List,Sec-CH-UA-Model,Sec-CH-Device-Memory", "charset": "utf-8", "cache-control": "max-age=0, private, no-cache, no-store, must-revalidate", "pragma": "no-cache", "access-control-allow-credentials": "true", "access-control-expose-headers": "x-dd-b, x-set-cookie", "access-control-allow-origin": "*", "x-datadome-cid": "AHrlqAAAAAMA0cG6C73LDXsANDIgug==", "x-dd-b": "2", "x-robots-tag": "noindex" }, "body": { "url": "https://geo.captcha-delivery.com/captcha/?initialCid=AHrlqAAAAAMA0cG6C73LDXsANDIgug==&cid=kya3owsYxtOR71TqfwcdXXFVinXlN3f40MTWghZg1fwpCmU2DZCKtAghLjHEuj4lzudB6MX19_pfbJdjfsicOkux2m9u2S~ZS9u3SEi27s2O7DYh~JU~vXKVuyJJh8dL&referer=https%3A%2F%2Fallegro.pl.allegrosandbox.pl%2Forder%2Fcheckout-forms%2F2cb9fdb0-5f25-11ef-a01d-ffc4021b90d8&hash=77DC0FFBAA0B77570F6B414F8E5BDB&t=bv&s=29544&e=d7ed08624f11fd9fbd02cf3e91db3c893f403c2b740a0e2a1b057e5342c2cbe2" } }, "request": { "url": "https://allegro.pl.allegrosandbox.pl/order/checkout-forms/2cb9fdb0-5f25-11ef-a01d-ffc4021b90d8", "headers": { "Authorization": "***", "Content-Type": "application/json", "Accept": "application/json", "User-Agent": "Make/production" }, "method": "GET" } }

AureliuszBrussy commented 2 weeks ago

@radiogena change your Content-Type and Accept to application/vnd.allegro.public.v1+json.

radiogena commented 2 weeks ago

one time, I got the reply of '200', and the answer was no longer valid. normally, I get again ConnectionError ECONNRESET: The service is temporarily unavailable. Could it be a problem with Auth2.0? If you let me know what exactly can help me understand the issue, I can ask more questions from support.

here is the input for GET:

[ { "ca": null, "qs": [], "url": "https://api.allegro.pl/order/checkout-forms/2cb9fdb0-5f25-11ef-a01d-ffc4021b90d8", "gzip": true, "method": "get", "headers": [ { "name": "Accept", "value": "application/vnd.allegro.public.v1+json" }, { "name": "Content-Type", "value": "application/vnd.allegro.public.v1+json" } ], "timeout": null, "useMtls": false, "bodyType": null, "serializeUrl": false, "shareCookies": false, "parseResponse": true, "followRedirect": true, "useQuerystring": false, "followAllRedirects": false, "rejectUnauthorized": true } ]

radiogena commented 1 week ago

@AureliuszBrussy, our Make organization is in the EU zone (eu2.make.com ). Can you remove the restrictions for certain traffic? Here's our make.com list of IPs that can be whitelisted, especially for eu2.make.com https://www.make.com/en/help/connections/allowing-connections-to-and-from-make-ip-addresses

AureliuszBrussy commented 1 week ago

@radiogena I see in the logs that you were able to create an access token and also managed to retrieve the data of this order, probably from your integration. Is the problem still occurring? How often are you hitting ECONNRESET? As far as I can see, the indicated IP addresses are not blocked.

radiogena commented 1 week ago

That is one good answer out of 20, I would say. Have attached the statistics for my scenario.

Screenshot 2024-08-27 at 09 25 37

AureliuszBrussy commented 1 week ago

Can you send me an example of the response error you are currently encountering (after changing the Accept and Content-Type headers)?

radiogena commented 1 week ago

@AureliuszBrussy another try today: Screenshot 2024-08-27 at 09 31 12

radiogena commented 1 week ago

Can you send me an example of the response error you are currently encountering (after changing the Accept and Content-Type headers)?

@AureliuszBrussy There are no logs to see because "Connection Timeout errors" are not logged because the connection was never established.

AureliuszBrussy commented 1 week ago

@radiogena I am clarifying this with the relevant team - we will check if we are blocking these IP addresses for some reason.

AureliuszBrussy commented 1 week ago

@radiogena we do not block these IP addresses. What library do you use to make requests to our API? Are the problems occurring from the beginning, or since the implementation of some change in your software?

radiogena commented 5 days ago

Hello @AureliuszBrussy, This issue has been present since the very beginning. At Make, they said they use Node JS as the Javascript library.

AureliuszBrussy commented 5 days ago

Please, explain this with Make - we do not block the IP addresses you indicate. At this point, I am unable to determine the cause of the problems you are experiencing.