Closed arshamX closed 1 year ago
dadash moshkelet hal shod?
It says "invalid byte: U+0073 's'". So probably there is a small letter 's' where there shouldn't be. In any case bin
is a strange place to put a config file.
I did not change the codes after the configuration! I was just creating an account! But the panel stopped working and I saw the xray status error on the panel.
What is your problem?
Xray 1.4.2 (Xray, Penetrates Everything.) Custom (go1.16.2 linux/amd64)
A unified platform for anti-censorship.
2022/10/25 11:43:33 [Info] infra/conf/serial: Reading config: bin/config.json
Failed to start: main: failed to load config files: [bin/config.json] > encoding/hex: invalid byte: U+0073 's'
ihave no idea whats going on please help
Hi delete latest user and check from dashboard. if you create user dont change it , remove and recreate it for edit.
dadash moshkelet hal shod?
are haji okie
Xray 1.4.2 (Xray, Penetrates Everything.) Custom (go1.16.2 linux/amd64) A unified platform for anti-censorship. 2022/10/25 11:43:33 [Info] infra/conf/serial: Reading config: bin/config.json Failed to start: main: failed to load config files: [bin/config.json] > encoding/hex: invalid byte: U+0073 's' ihave no idea whats going on please help
Hi delete latest user and check from dashboard. if you create user dont change it , remove and recreate it for edit.
thanks it helped
Xray 1.4.2 (Xray, Penetrates Everything.) Custom (go1.16.2 linux/amd64) A unified platform for anti-censorship. 2022/10/25 11:43:33 [Info] infra/conf/serial: Reading config: bin/config.json Failed to start: main: failed to load config files: [bin/config.json] > encoding/hex: invalid byte: U+0073 's' ihave no idea whats going on please help
Hi delete latest user and check from dashboard. if you create user dont change it , remove and recreate it for edit.
Thanks It Was great helpful
why we should delete the latest user to solve this isuue. Do you know what is the case?
It seems like there might be a problem with loading the config files. The error message indicates an invalid byte, specifically 's'.
dadash moshkelet hal shod?
when I add any trojan config, xray stop working (v 1.8 and above) with the same message.
It's because there was a client with xtls valued xtls-rprx-direct
to fix it, just edit your clients and make not in xtls, if xtls is off, then turn it on, change it to not and then you can turn it off again
I get this error: Failed to start: main: failed to load config files: [bin/config.json] > encoding/hex: invalid byte: U+004B 'K' after adding a user via the API with the following settings:
email: user_id.toString(),
enable: true,
flow: "xtls-rprx-vision",
id: randomString(8)+"-"+randomString(4,'1234567890')+"-"+randomString(4)+"-"+randomString(4)+"-"+randomString(12)
If I do the same through the control panel. there is no such error.
UPDATED! the problem was incorrect id generation on my part. Apparently the server is waiting for a special generation according to the rules. I just took a piece of code from WEB to generate the ID and now everything is fine.
const template = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx';
return template.replace(/[xy]/g, function (c) {
const randomValues = new Uint8Array(1);
crypto.getRandomValues(randomValues);
let randomValue = randomValues[0] % 16;
let calculatedValue = (c === 'x') ? randomValue : (randomValue & 0x3 | 0x8);
return calculatedValue.toString(16);
});
I hope it helped someone)
Xray 1.4.2 (Xray, Penetrates Everything.) Custom (go1.16.2 linux/amd64)
A unified platform for anti-censorship.
2022/10/25 11:43:33 [Info] infra/conf/serial: Reading config: bin/config.json
Failed to start: main: failed to load config files: [bin/config.json] > encoding/hex: invalid byte: U+0073 's'
ihave no idea whats going on please help