• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Canary Canary 14.12 and otclient. error connecting

danio4don

AlatharStudio
Joined
Jun 15, 2012
Messages
395
Reaction score
59
Location
Poland
Hello. I have a small problem. I configured Canary OTBR 14.12 and OTClient Mehah 14.12, and the server login.

But I still can't log into the server and there are errors in the OTClient console.

Is anyone able to help me? Regards

Zrzut ekranu 2026-01-21 021619.webp



Zrzut ekranu 2026-01-21 021521.webp

Zrzut ekranu 2026-01-21 022023.webp


stack traceback:
[builtin#142]: at 0x7ff664301e00
[C]: in function 'httpLogin'
/client_entergame/entergame.lua:675: in function 'tryHttpLogin'
/client_entergame/entergame.lua:802: in function 'doLogin'
/client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
stack traceback:
[builtin#142]: at 0x7ff664301e00
[C]: in function 'httpLogin'
/client_entergame/entergame.lua:675: in function 'tryHttpLogin'
/client_entergame/entergame.lua:802: in function 'doLogin'
/client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
ERROR: protected lua call failed: LUA ERROR:
C++ call failed: LUA ERROR: attempt to cast a 'string' lua value to 'int'
stack traceback:
[builtin#142]: at 0x7ff664301e00
[C]: in function 'httpLogin'
/client_entergame/entergame.lua:675: in function 'tryHttpLogin'
/client_entergame/entergame.lua:802: in function 'doLogin'
/client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
stack traceback:
[builtin#142]: at 0x7ff664301e00
[C]: in function 'httpLogin'
/client_entergame/entergame.lua:675: in function 'tryHttpLogin'
/client_entergame/entergame.lua:802: in function 'doLogin'
/client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
ERROR: Lua exception: C++ call failed: LUA ERROR: attempt to cast a 'string' lua value to 'int'
stack traceback:
[builtin#142]: at 0x7ff664301e00
[C]: in function 'httpLogin'
/client_entergame/entergame.lua:675: in function 'tryHttpLogin'
/client_entergame/entergame.lua:802: in function 'doLogin'
/client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
stack traceback:
[builtin#142]: at 0x7ff664301e00
[C]: in function 'httpLogin'
/client_entergame/entergame.lua:675: in function 'tryHttpLogin'
/client_entergame/entergame.lua:802: in function 'doLogin'
/client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
ERROR: protected lua call failed: LUA ERROR:
C++ call failed: LUA ERROR: attempt to cast a 'string' lua value to 'int'
stack traceback:
[builtin#142]: at 0x7ff664301e00
[C]: in function 'httpLogin'
/client_entergame/entergame.lua:675: in function 'tryHttpLogin'
/client_entergame/entergame.lua:802: in function 'doLogin'
/client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
stack traceback:
[builtin#142]: at 0x7ff664301e00
[C]: in function 'httpLogin'
/client_entergame/entergame.lua:675: in function 'tryHttpLogin'
/client_entergame/entergame.lua:802: in function 'doLogin'
/client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
 
Hello. I have a small problem. I configured Canary OTBR 14.12 and OTClient Mehah 14.12, and the server login.

But I still can't log into the server and there are errors in the OTClient console.

Is anyone able to help me? Regards

View attachment 97667



View attachment 97668

View attachment 97669


stack traceback:
[builtin#142]: at 0x7ff664301e00
[C]: in function 'httpLogin'
/client_entergame/entergame.lua:675: in function 'tryHttpLogin'
/client_entergame/entergame.lua:802: in function 'doLogin'
/client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
stack traceback:
[builtin#142]: at 0x7ff664301e00
[C]: in function 'httpLogin'
/client_entergame/entergame.lua:675: in function 'tryHttpLogin'
/client_entergame/entergame.lua:802: in function 'doLogin'
/client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
ERROR: protected lua call failed: LUA ERROR:
C++ call failed: LUA ERROR: attempt to cast a 'string' lua value to 'int'
stack traceback:
[builtin#142]: at 0x7ff664301e00
[C]: in function 'httpLogin'
/client_entergame/entergame.lua:675: in function 'tryHttpLogin'
/client_entergame/entergame.lua:802: in function 'doLogin'
/client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
stack traceback:
[builtin#142]: at 0x7ff664301e00
[C]: in function 'httpLogin'
/client_entergame/entergame.lua:675: in function 'tryHttpLogin'
/client_entergame/entergame.lua:802: in function 'doLogin'
/client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
ERROR: Lua exception: C++ call failed: LUA ERROR: attempt to cast a 'string' lua value to 'int'
stack traceback:
[builtin#142]: at 0x7ff664301e00
[C]: in function 'httpLogin'
/client_entergame/entergame.lua:675: in function 'tryHttpLogin'
/client_entergame/entergame.lua:802: in function 'doLogin'
/client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
stack traceback:
[builtin#142]: at 0x7ff664301e00
[C]: in function 'httpLogin'
/client_entergame/entergame.lua:675: in function 'tryHttpLogin'
/client_entergame/entergame.lua:802: in function 'doLogin'
/client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
ERROR: protected lua call failed: LUA ERROR:
C++ call failed: LUA ERROR: attempt to cast a 'string' lua value to 'int'
stack traceback:
[builtin#142]: at 0x7ff664301e00
[C]: in function 'httpLogin'
/client_entergame/entergame.lua:675: in function 'tryHttpLogin'
/client_entergame/entergame.lua:802: in function 'doLogin'
/client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
stack traceback:
[builtin#142]: at 0x7ff664301e00
[C]: in function 'httpLogin'
/client_entergame/entergame.lua:675: in function 'tryHttpLogin'
/client_entergame/entergame.lua:802: in function 'doLogin'
/client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
Hello. I have a small problem. I configured Canary OTBR 14.12 and OTClient Mehah 14.12, and the server login.

But I still can't log into the server and there are errors in the OTClient console.

Is anyone able to help me? Regards

View attachment 97667



View attachment 97668

View attachment 97669


stack traceback:
[builtin#142]: at 0x7ff664301e00
[C]: in function 'httpLogin'
/client_entergame/entergame.lua:675: in function 'tryHttpLogin'
/client_entergame/entergame.lua:802: in function 'doLogin'
/client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
stack traceback:
[builtin#142]: at 0x7ff664301e00
[C]: in function 'httpLogin'
/client_entergame/entergame.lua:675: in function 'tryHttpLogin'
/client_entergame/entergame.lua:802: in function 'doLogin'
/client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
ERROR: protected lua call failed: LUA ERROR:
C++ call failed: LUA ERROR: attempt to cast a 'string' lua value to 'int'
stack traceback:
[builtin#142]: at 0x7ff664301e00
[C]: in function 'httpLogin'
/client_entergame/entergame.lua:675: in function 'tryHttpLogin'
/client_entergame/entergame.lua:802: in function 'doLogin'
/client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
stack traceback:
[builtin#142]: at 0x7ff664301e00
[C]: in function 'httpLogin'
/client_entergame/entergame.lua:675: in function 'tryHttpLogin'
/client_entergame/entergame.lua:802: in function 'doLogin'
/client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
ERROR: Lua exception: C++ call failed: LUA ERROR: attempt to cast a 'string' lua value to 'int'
stack traceback:
[builtin#142]: at 0x7ff664301e00
[C]: in function 'httpLogin'
/client_entergame/entergame.lua:675: in function 'tryHttpLogin'
/client_entergame/entergame.lua:802: in function 'doLogin'
/client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
stack traceback:
[builtin#142]: at 0x7ff664301e00
[C]: in function 'httpLogin'
/client_entergame/entergame.lua:675: in function 'tryHttpLogin'
/client_entergame/entergame.lua:802: in function 'doLogin'
/client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
ERROR: protected lua call failed: LUA ERROR:
C++ call failed: LUA ERROR: attempt to cast a 'string' lua value to 'int'
stack traceback:
[builtin#142]: at 0x7ff664301e00
[C]: in function 'httpLogin'
/client_entergame/entergame.lua:675: in function 'tryHttpLogin'
/client_entergame/entergame.lua:802: in function 'doLogin'
/client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
stack traceback:
[builtin#142]: at 0x7ff664301e00
[C]: in function 'httpLogin'
/client_entergame/entergame.lua:675: in function 'tryHttpLogin'
/client_entergame/entergame.lua:802: in function 'doLogin'
/client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
U need use api login from website, login.php read manual from here Welcome! | OpenTibiaBR (https://docs.opentibiabr.com/) <---
 
I added a plugin to myaac, but it still doesn't work. I've tried everything already.

When I start the server, the website shows normally that the server is online.

The problem is probably with the login server.

Zrzut ekranu 2026-01-21 030942.webp
 
I checked versions 3.2.0 and 3.2.1, both versions are the same. I've already tried everything. I changed ports, server IP to domain and vice versa. Nothing wants to help.
 
I added this file login.php to the myaac folder on the VPS. But when I go to the website, the file still doesn't work.

The file permissions are also correct. What could be the reason it’s not loading?

You have some error, check apache2/nginx logs.

Or enable dev mode in config.local.php
 
You have some error, check apache2/nginx logs.

Or enable dev mode in config.local.php
My AI tool suggested that I should remove this in login.php
require_once 'config.php';
require_once 'config.local.php';

now aelthar.com.pl/login.php shows this

{"errorCode":3,"errorMessage":"Unrecognized event ."}

Login still doesn't work.
Post automatically merged:

if my site aelthar.com.pl uses SSL, that is https://, then in the configuration file
MYSQL_DBNAME=XXXXX
MYSQL_HOST=127.0.0.1
MYSQL_PORT=3306
MYSQL_PASS=XXXXXX
MYSQL_USER=XXXXXX
ENV_LOG_LEVEL=info
LOGIN_IP=aelthar.com.pl
LOGIN_HTTP_PORT=8080
LOGIN_GRPC_PORT=9091
RATE_LIMITER_BURST=10
RATE_LIMITER_RATE=5
SERVER_IP=aelthar.com.pl
SERVER_LOCATION=Poland
SERVER_NAME=Aelthar
SERVER_PORT=7172
VOCATIONS=Sorcerer,Druid,Paladin,Knight


Should I enter the domain name or the server IP in it?

The same in the Canary config, should I enter the domain name or the server IP?
Post automatically merged:

I keep getting these errors in the console
stack traceback:
[builtin#142]: at 0x7ff7c8e11e00
[C]: in function 'httpLogin'
/client_entergame/entergame.lua:675: in function 'tryHttpLogin'
/client_entergame/entergame.lua:802: in function 'doLogin'
/client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
stack traceback:
[builtin#142]: at 0x7ff7c8e11e00
[C]: in function 'httpLogin'
/client_entergame/entergame.lua:675: in function 'tryHttpLogin'
/client_entergame/entergame.lua:802: in function 'doLogin'
/client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
ERROR: Lua exception: C++ call failed: LUA ERROR: attempt to cast a 'string' lua value to 'int'
stack traceback:
[builtin#142]: at 0x7ff7c8e11e00
[C]: in function 'httpLogin'
/client_entergame/entergame.lua:675: in function 'tryHttpLogin'
/client_entergame/entergame.lua:802: in function 'doLogin'
/client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
stack traceback:
[builtin#142]: at 0x7ff7c8e11e00
[C]: in function 'httpLogin'
/client_entergame/entergame.lua:675: in function 'tryHttpLogin'
/client_entergame/entergame.lua:802: in function 'doLogin'
/client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
ERROR: protected lua call failed: LUA ERROR:
C++ call failed: LUA ERROR: attempt to cast a 'string' lua value to 'int'
stack traceback:
[builtin#142]: at 0x7ff7c8e11e00
[C]: in function 'httpLogin'
/client_entergame/entergame.lua:675: in function 'tryHttpLogin'
/client_entergame/entergame.lua:802: in function 'doLogin'
/client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
stack traceback:
[builtin#142]: at 0x7ff7c8e11e00
[C]: in function 'httpLogin'
/client_entergame/entergame.lua:675: in function 'tryHttpLogin'
/client_entergame/entergame.lua:802: in function 'doLogin'
/client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
ERROR: Lua exception: C++ call failed: LUA ERROR: attempt to cast a 'string' lua value to 'int'
stack traceback:
[builtin#142]: at 0x7ff7c8e11e00
[C]: in function 'httpLogin'
/client_entergame/entergame.lua:675: in function 'tryHttpLogin'
/client_entergame/entergame.lua:802: in function 'doLogin'
/client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
stack traceback:
[builtin#142]: at 0x7ff7c8e11e00
[C]: in function 'httpLogin'
/client_entergame/entergame.lua:675: in function 'tryHttpLogin'
/client_entergame/entergame.lua:802: in function 'doLogin'
/client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
ERROR: protected lua call failed: LUA ERROR:
C++ call failed: LUA ERROR: attempt to cast a 'string' lua value to 'int'
stack traceback:
[builtin#142]: at 0x7ff7c8e11e00
[C]: in function 'httpLogin'
/client_entergame/entergame.lua:675: in function 'tryHttpLogin'
/client_entergame/entergame.lua:802: in function 'doLogin'
/client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
stack traceback:
[builtin#142]: at 0x7ff7c8e11e00
[C]: in function 'httpLogin'
/client_entergame/entergame.lua:675: in function 'tryHttpLogin'
/client_entergame/entergame.lua:802: in function 'doLogin'
/client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
Exiting application..
 
Last edited:
You should configure Canary + MyAAC then connect to Canary with OTClient Redemption following this

The default login.php from myaac repo should work:

(Thanks Majesty)
 
You should configure Canary + MyAAC then connect to Canary with OTClient Redemption following this

The default login.php from myaac repo should work:

(Thanks Majesty)
I did what you wrote, but it's still the same. I can't connect through OTClient, and the logs in OTClient keep showing the same errors.
 
U use assets or spr/dat in the things folder? maybe dumb question but maybe worth to ask xD
^
1) assets from 14.12 ( version ), should be placed in /things/1412/All files
2) Sounds should be placed in /sounds/1412/All files

3) Login method:
HTTP
LUA:
Servers_init = {
    ["http://your-domain-or-ip/login.php"] = {
        ["port"] = 80,
        ["protocol"] = 1412,
        ["httpLogin"] = true
    },
}

HTTPS
LUA:
Servers_init = {
    ["https://your-domain-or-ip/login.php"] = {
        ["port"] = 443,
        ["protocol"] = 1412,
        ["httpLogin"] = false
    },
}

I got this working locally, live and by auto login
1769089240017.webp
1769089306432.webp1769089319976.webp

My init on Linux: ( Its an IPV4 for Vrital Machine )
LUA:
Servers_init = {
    ["192.168.10.216"] = { -- HTTP traffic
        ["port"] = 80,
        ["protocol"] = 1412,
        ["httpLogin"] = true
    },
}
 
Everything in OTClient is in its place. It has to be an error in OTClient because even if I don't have the server and login enabled, this error still pops up in the OTClient console. No matter what I enter, the error appears in the console.


LUA:
Startup done :]
ERROR: Lua exception: C++ call failed: LUA ERROR: attempt to cast a 'string' lua value to 'int'
stack traceback:
    [builtin#142]: at 0x7ff673f81e00
    [C]: in function 'httpLogin'
    /client_entergame/entergame.lua:675: in function 'tryHttpLogin'
    /client_entergame/entergame.lua:802: in function 'doLogin'
    /client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
stack traceback:
    [builtin#142]: at 0x7ff673f81e00
    [C]: in function 'httpLogin'
    /client_entergame/entergame.lua:675: in function 'tryHttpLogin'
    /client_entergame/entergame.lua:802: in function 'doLogin'
    /client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
ERROR: protected lua call failed: LUA ERROR:
C++ call failed: LUA ERROR: attempt to cast a 'string' lua value to 'int'
stack traceback:
    [builtin#142]: at 0x7ff673f81e00
    [C]: in function 'httpLogin'
    /client_entergame/entergame.lua:675: in function 'tryHttpLogin'
    /client_entergame/entergame.lua:802: in function 'doLogin'
    /client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
stack traceback:
    [builtin#142]: at 0x7ff673f81e00
    [C]: in function 'httpLogin'
    /client_entergame/entergame.lua:675: in function 'tryHttpLogin'
    /client_entergame/entergame.lua:802: in function 'doLogin'
    /client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
Post automatically merged:

I always ran Canary, OTClient, login. And I never had any problems with it. Now it won't connect and there are these errors in OTClient.
Post automatically merged:

Problem solved. I was using the latest client from the repository all the time. Now I used 4.0 + hotfix(1) and logged in normally, and there are no errors in the console.
 
Last edited:
Everything in OTClient is in its place. It has to be an error in OTClient because even if I don't have the server and login enabled, this error still pops up in the OTClient console. No matter what I enter, the error appears in the console.


LUA:
Startup done :]
ERROR: Lua exception: C++ call failed: LUA ERROR: attempt to cast a 'string' lua value to 'int'
stack traceback:
    [builtin#142]: at 0x7ff673f81e00
    [C]: in function 'httpLogin'
    /client_entergame/entergame.lua:675: in function 'tryHttpLogin'
    /client_entergame/entergame.lua:802: in function 'doLogin'
    /client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
stack traceback:
    [builtin#142]: at 0x7ff673f81e00
    [C]: in function 'httpLogin'
    /client_entergame/entergame.lua:675: in function 'tryHttpLogin'
    /client_entergame/entergame.lua:802: in function 'doLogin'
    /client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
ERROR: protected lua call failed: LUA ERROR:
C++ call failed: LUA ERROR: attempt to cast a 'string' lua value to 'int'
stack traceback:
    [builtin#142]: at 0x7ff673f81e00
    [C]: in function 'httpLogin'
    /client_entergame/entergame.lua:675: in function 'tryHttpLogin'
    /client_entergame/entergame.lua:802: in function 'doLogin'
    /client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
stack traceback:
    [builtin#142]: at 0x7ff673f81e00
    [C]: in function 'httpLogin'
    /client_entergame/entergame.lua:675: in function 'tryHttpLogin'
    /client_entergame/entergame.lua:802: in function 'doLogin'
    /client_entergame/entergame.otui:251: [@onClick]:2: in function </client_entergame/entergame.otui:251: [@onClick]:1>
Post automatically merged:

I always ran Canary, OTClient, login. And I never had any problems with it. Now it won't connect and there are these errors in OTClient.
Post automatically merged:

Problem solved. I was using the latest client from the repository all the time. Now I used 4.0 + hotfix(1) and logged in normally, and there are no errors in the console.
well that error code looks like it "cant connect" so check firewalls etc? mysql settings etc xampp/uniserv I guess u tryin on ur computer with Windows?
 
well that error code looks like it "cant connect" so check firewalls etc? mysql settings etc xampp/uniserv I guess u tryin on ur computer with Windows?
I use a VPS with Ubuntu. Everything is properly configured. It was the client's problem. I downloaded the stable OTClient 4.0 and everything works.
 
Back
Top