[Top][All Lists]

[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: Jaft
Subject: Re: Is There Any Means to Call an External Site/API from a Controller?
Date: Tue, 27 Dec 2022 23:56:48 +0000 (UTC)

Beautiful; worked perfectly. And no blocking; I was able to make a call and then load a string for the webpage.

And I don't think I need to do any other call than GETs so I should be able to implement my project.

As always, thanks a ton!

On Tuesday, December 27, 2022 at 02:20:05 PM CST, Jaft <> wrote:

Oh! This is new. Looks like it isn't in 0.5.1, yet, so I'll have to try the latest from GitLab. But I'll let you know how it goes!

On Tuesday, December 27, 2022 at 12:35:17 PM CST, Nala Ginrut <> wrote:

Hi Jaft!
First, it is recommended to use (artanis client).

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]