[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is There Any Means to Call an External Site/API from a Controller?
From: |
Nala Ginrut |
Subject: |
Re: Is There Any Means to Call an External Site/API from a Controller? |
Date: |
Wed, 28 Dec 2022 02:35:07 +0800 |
User-agent: |
mu4e 1.4.15; emacs 27.1 |
Hi Jaft!
First, it is recommended to use (artanis client).
https://gitlab.com/hardenedlinux/artanis/-/blob/master/artanis/client.scm#L27
artanis:http-get is based on guile-curl, I don't remember the last
status of non-blocking with it, but if it's still blocking, I'll manage
to handle the non-blocking in (artanis client) module.
Best regards.
Jaft writes:
> I know this was discussed in the past but it's been a while since I've used
> Artanis and I was wondering if anything was different?
> The open-socket-for-uri and fcntl method, while avoiding the
> Error: (wrong-type-arg #f Wrong type (expecting ~A): ~S (resumable
> continuation #<vm-continuation 7f52391628e0>) (#<vm-continuation
> 7f52391628e0>))
> Ingore it to avoid Ragnarok crash.
> error, still causes the Artanis endpoint to hang and not move on to finish
> the controller call.
> I just wanted to double check whether it was still not possible to call
> external HTTP(S) calls from within a controller.
--
GNU Powered it
GPL Protected it
GOD Blessed it
HFG - NalaGinrut
Fingerprint F53B 4C56 95B5 E4D5 6093 4324 8469 6772 846A 0058
signature.asc
Description: PGP signature