The operation's base length must be equal to the string's length. error
- Lingua principale
- JavaScript
- Stelle
- 10.1k
- Fork
- 1.1k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Hello,
I am using codimd in docker from Linuxserver.io (latest) and I suddenly got the error in the title of the issue when I try to edit any of my notes while they were fine the other day and nothing has really changed.
I have attempted to fix it by updating the container and changing the defaultUseHardbreak setting to false. This didn't solve it.
**docker-compose.yml:**
```
version: "3"
services:
codimd:
image: linuxserver/codimd:latest
container_name: codimd
restart: always
volumes:
- ./config:/config
environment:
- PGID=2009
- PUID=2009
- TZ=Europe/Amsterdam
- CMD_DB_URL=mysql://codimd_user:supersecretpassword@db.docker.local:3306/codimd_db
networks:
web-int:
ipv4_address: 192.168.188.9
networks:
web-int:
external: true
```
**config.json**
```
{
"use_env_variable": "CMD_DB_URL"
}
```
**Logs:**
```
codimd | 2020-01-30T10:10:39.093Z error: The operation's base length must be equal to the string's length.
codimd | 2020-01-30T10:10:40.707Z error: The operation's base length must be equal to the string's length.
```
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con i file docker-compose.yml e config.json forniti, quindi riproduci la modifica di una nota nel container Linuxserver.io acquisendo al contempo i log dell'applicazione. Traccia l'origine dell'errore di durata dell'operazione segnalato e verifica che le note possano essere modificate correttamente con la configurazione del database indicata.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- docker, javascript, mysql
- Ambito
- backend
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100