R
Railway•11mo ago
ZiuDesu

Null respond from POST api

I've tried it locally and its work properly but when i changed mydb to mysql railway its became really strange, it sends me null i mean the data has been sent but why null???... any solutions?
No description
10 Replies
Percy
Percy•11mo ago
Project ID: 34577167-60a7-4440-ade4-27689dd1599b
ZiuDesu
ZiuDesu•11mo ago
34577167-60a7-4440-ade4-27689dd1599b
Brody
Brody•11mo ago
this would be an issue with your code and or the data in your database is wrong/missing/incorrect
ZiuDesu
ZiuDesu•11mo ago
idk whats wrong, i just try it using local db and it worked, but when i tried using mysql from railway it dont work properly btw the data posted, but sent null
Brody
Brody•11mo ago
im sorry but helping with code issues is a bit out of scope of what these help threads are intended for, best advice i can give is to make sure the data in your database is correct and to check for errors in your deployment logs
ZiuDesu
ZiuDesu•11mo ago
can you help me plsss, i got this red from logs: 2023-12-13T05:02:32.335956Z 0 [System] [MY-015015] [Server] MySQL Server - start. 2023-12-13T05:02:32.567425Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead. 2023-12-13T05:02:32.569439Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.2.0) starting as process 1 2023-12-13T05:02:32.578585Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started. 2023-12-13T05:02:32.757945Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended. 2023-12-13T05:02:32.979106Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed. 2023-12-13T05:02:32.979157Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel. 2023-12-13T05:02:32.982797Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory. 2023-12-13T05:02:33.011889Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock 2023-12-13T05:02:33.011928Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.2.0' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server - GPL. from railway mysql
Brody
Brody•11mo ago
red doesnt always mean error, but either way there are no errors here
ZiuDesu
ZiuDesu•11mo ago
solved men, im so dumbbb ty for waste ur time its small mistake 😦
Brody
Brody•11mo ago
you didnt waste my time, but next time please look into your code a bit further
ZiuDesu
ZiuDesu•11mo ago
yess sirr
Want results from more Discord servers?
Add your server