Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Task runs just once
Post: RE: Task runs just once

michalsn Wrote: (02-20-2025, 05:45 AM) -- You're supposed to set a CRON job, that will manage tasks you defined: https://tasks.codeigniter.com/configuration/#setting-the-cron-job -- Thank you, I mo...
3,458 Views
3 Replies
02-23-2025, 04:00 AM
68thorby68
    Thread: Task runs just once
Post: RE: Task runs just once

UPDATE If from terminal I run Code: -- php spark tasks:run --task testing -- My tasks runs ok If I then run Code: -- php spark tasks:list -- The task reports the Next Run is due to be executed a...
3,458 Views
3 Replies
02-20-2025, 04:50 AM
68thorby68
    Thread: Task runs just once
Post: Task runs just once

Hi, I'm not sure if I've understood the the Tasks package correctly, but, to test, I I've configured a very simple task to run every 5 minutes. tasks.php Code: -- public function init(Scheduler $s...
3,458 Views
3 Replies
02-20-2025, 03:17 AM
68thorby68
    Thread: When Queue Fails
Post: RE: When Queue Fails

Many thanks michalsn, this is very helpful.
1,200 Views
2 Replies
02-20-2025, 02:59 AM
68thorby68
    Thread: When Queue Fails
Post: When Queue Fails

Hi, Please note my application is hosted on a shared hosting platform. I am using the Queue package to process 3rd Party Webhooks, and for the most part, the Queue package is working like a dream....
1,200 Views
2 Replies
02-13-2025, 05:48 AM
68thorby68
    Thread: Curlrequest with empty array
Post: Curlrequest with empty array

Hi, I'm using the MS Graph API and one of my tasks is to create a new folder on my OneDrive.  The MS documentation says the message body should be like this: Code: -- {   "name": "New Folder",  ...
491 Views
0 Replies
12-06-2024, 12:37 PM
68thorby68
    Thread: Routes Error after upgrade to v4.5.5
Post: RE: Routes Error after upgrade to v4.5.5

kenjis Wrote: (09-18-2024, 02:07 AM) -- CI4 does not use Guzzle. -- Thank you.  However, my application that is implemented on the CI4 framework uses Guzzle, and it looks like it's having problems...
2,089 Views
4 Replies
09-18-2024, 02:22 AM
68thorby68
    Thread: Routes Error after upgrade to v4.5.5
Post: Routes Error after upgrade to v4.5.5

Hi, I have just upgraded to v4.5.5 and I am now getting errors I have never received before. Code: -- CRITICAL - 2024-09-17 14:15:42 --> GuzzleHttp\Exception\ConnectException: cURL error 6: getad...
2,089 Views
4 Replies
09-17-2024, 06:27 AM
68thorby68
    Thread: Codeigniter Tasks do not work with cronjob
Post: RE: Codeigniter Tasks do not work with cronjob

Hi, Some of the example cron statements in the CI documentation can be misleading especially where hosted and shared hosting environments are concerned, but then they are examples. Certainly in my ca...
1,525 Views
3 Replies
09-16-2024, 12:05 PM
68thorby68
    Thread: Filter - Return response error
Post: RE: Filter - Return response error

kenjis Wrote: (09-11-2024, 06:25 PM) -- You seem to misunderstand how PHP or the framework works. > As a result of the Updater failure, I was expecting, 1) the HTTP 200 response would be sent to t...
1,937 Views
6 Replies
09-13-2024, 09:25 AM
68thorby68
    Thread: Filter - Return response error
Post: RE: Filter - Return response error

kenjis Wrote: (08-26-2024, 03:46 PM) -- I don't understand what the Updater class is. It is not called from the controller, so it seems to be never called. And $bar is obviously not defined, so no wo...
1,937 Views
6 Replies
09-11-2024, 06:08 AM
68thorby68
    Thread: set exception 400 to 404
Post: RE: set exception 400 to 404

mylastof Wrote: (05-21-2024, 06:54 PM) -- I have error BadRequest with code 400 how to handle it to force show as 404? can you help? CodeIgniter\HTTP\Exceptions\BadRequestException -- If you...
815 Views
1 Replies
08-26-2024, 05:10 AM
68thorby68
    Thread: Javascript fetch on a CI route returns 404
Post: RE: Javascript fetch on a CI route returns 404

I believe you need to use the full url in the request: Code: -- fetch("https://YOURDOMAIN/yourdefinedroute", { --
962 Views
1 Replies
08-26-2024, 04:56 AM
68thorby68
    Thread: Filter - Return response error
Post: Filter - Return response error

Hi, I have created a filter to trigger a process After a controller. My controller (below) is very simple. Essentially, the controller receives data from an external source (webhook), assigns a vari...
1,937 Views
6 Replies
08-26-2024, 03:54 AM
68thorby68
    Thread: CURL Request Class - urlencode
Post: RE: CURL Request Class - urlencode

kenjis Wrote: (08-17-2024, 06:58 PM) -- 68thorby68 Wrote: (08-17-2024, 09:58 AM) -- Is there a way to instruct the CURL Request Class not to encode the url?  -- No. Use `query` option to send ...
1,108 Views
2 Replies
08-18-2024, 02:56 AM
68thorby68
    Thread: CURL Request Class - urlencode
Post: CURL Request Class - urlencode

Hi, I working with a 3rd Party API and need to configure the URL as per the 3rd party spec. PHP Code: -- $my_row = $client->get('/THIRDPARTY/?filter__Company%20Name__equal=my%20company%20(sports%20d...
1,108 Views
2 Replies
08-17-2024, 09:58 AM
68thorby68
    Thread: CURL file upload
Post: RE: CURL file upload

kenjis Wrote: (07-30-2024, 07:55 PM) -- Try PHP Code: -- $client->post('API ENDPOINT', [     // ...     'multipart' => [         'file' => $myfile,     ], ]); -- See https://www.codeigniter....
1,016 Views
2 Replies
07-31-2024, 03:51 AM
68thorby68
    Thread: CURL file upload
Post: CURL file upload

Hi, I am trying to upload images via and API using CI CURL Request class. However, Codeigniter errors "CodeIgniter\HTTP\Exceptions\HTTPException 22 : The requested URL returned error: 400" referring ...
1,016 Views
2 Replies
07-30-2024, 06:39 AM
68thorby68
    Thread: Unexpected json_encode format
Post: Unexpected json_encode format

Hi, I am experiencing unexpected results when using json_encode on an array that has text values (with spaces) in my CI4 view. I am using php 8 and CI 4.2.12 I believe I am encoding my array co...
755 Views
1 Replies
06-22-2024, 02:44 AM
68thorby68
    Thread: Error Exception View 4.4.5
Post: Error Exception View 4.4.5

[hr] Hi, I have just upgraded one of my projects to ver 4.4.5 and the Error Exception view does not seen to render correctly. .env  - CI_ENVIRONMENT = development I have also checked (as sug...
591 Views
1 Replies
02-19-2024, 05:03 AM
68thorby68

Theme © iAndrew 2016 - Forum software by © MyBB