Page MenuHomeDevCentral

Error 500 when posting log entry to api.nasqueron.org/servers-log
Closed, ResolvedPublic

Description

When trying to post a log entry:

18:27:00 <Dereckson> .+log [Ysul] Renewing TLS certificate for web legacy domains
18:27:19 <Dereckson> .tcl putdebug
18:27:21 <Wearg> [DEBUG] HTTP 500
18:27:21 <Wearg>     while executing
18:27:21 <Wearg> "::rest::_call {} $headers $url $query $body $error_body"
18:27:21 <Wearg>     (procedure "rest::simple" line 44)
18:27:21 <Wearg>     invoked from within
18:27:21 <Wearg> "rest::simple https://api.nasqueron.org/servers-log/ {} {
18:27:21 <Wearg>         method PUT
18:27:21 <Wearg>         content-type application/json
18:27:21 <Wearg>         format json
18:27:21 <Wearg>     } $request"
18:27:21 <Wearg>     (procedure "add_to_servers_log" line 10)
18:27:21 <Wearg>     invoked from within
18:27:21 <Wearg> "add_to_servers_log $emitter "$network $source" $component $entry"
18:27:21 <Wearg>     (procedure "handle_send_to_servers_log" line 6)
18:27:21 <Wearg>     invoked from within
18:27:21 <Wearg> "handle_send_to_servers_log $handle $username $arg "dcc $idx""
18:27:21 <Wearg>     (procedure "dcc:log" line 3)
18:27:21 <Wearg>     invoked from within
18:27:21 <Wearg> "dcc:log $_dcc1 $_dcc2 $_dcc3"
18:27:21 <Wearg> Tcl:

Service is up as:

Related Objects

Event Timeline

dereckson triaged this task as High priority.Jun 9 2022, 18:29
dereckson created this task.
dereckson updated the task description. (Show Details)

Adding eggdrop project, as an error when running add_to_servers_log should be caught, passed to handle_send_to_servers_log and printed on relevant place, DCC session or IRC channel.

Relevant error file is /var/log/www/nasqueron.org/api-php.log on Ysul:

[09-Jun-2022 18:27:01 UTC] PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /srv/api/servers-log/vendor/netresearch/jsonmapper/src/JsonMapper.php on line 300

[21-Dec-2022 18:56:04 UTC] PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /srv/api/servers-log/vendor/netresearch/jsonmapper/src/JsonMapper.php on line 300

Just need to upgrade dependencies, as tests pass with JsonMapper 4.1.0.

Note: there is another project called JsonMapper with jsonmapper.net as domain name and jsonmapper/jsonmapper, it's unrelated, and expects public getters/setters.