XTLS / Xray-core

Xray, Penetrates Everything. Also the best v2ray-core, with XTLS support. Fully compatible configuration.
https://t.me/projectXray
Mozilla Public License 2.0
23.06k stars 3.69k forks source link

xray issue #1277

Closed arshamX closed 1 year ago

arshamX commented 1 year ago

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

zingunlock commented 1 year ago

dadash moshkelet hal shod?

ghost commented 1 year ago

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.

zingunlock commented 1 year ago

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?

rf-teen commented 1 year ago

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.

arshamX commented 1 year ago

dadash moshkelet hal shod?

are haji okie

arshamX commented 1 year ago

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

benyamin6920 commented 1 year ago

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

atnsun commented 1 year ago

why we should delete the latest user to solve this isuue. Do you know what is the case?

us254 commented 1 year ago

It seems like there might be a problem with loading the config files. The error message indicates an invalid byte, specifically 's'.

mmosadegh commented 1 year ago

dadash moshkelet hal shod?

when I add any trojan config, xray stop working (v 1.8 and above) with the same message.

ToorajValaee commented 9 months ago

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

whakru commented 2 months ago

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)