lucaszdevmmyers616
lucaszdevmmyers616
RRailway
Created by lucaszdevmmyers616 on 8/17/2023 in #✋|help
When I not pay in the day, my production database is ERASED, WHY?
I use Mysql, so I have to implement a automatic mysql database backup
10 replies
RRailway
Created by lucaszdevmmyers616 on 8/17/2023 in #✋|help
When I not pay in the day, my production database is ERASED, WHY?
Restarting to came back the tables?
10 replies
RRailway
Created by lucaszdevmmyers616 on 8/17/2023 in #✋|help
When I not pay in the day, my production database is ERASED, WHY?
N/A
10 replies
RRailway
Created by lucaszdevmmyers616 on 6/11/2023 in #✋|help
Database Variables UI Problem
N/A
10 replies
RRailway
Created by lucaszdevmmyers616 on 3/13/2023 in #✋|help
AxiosError: connect ECONNREFUSED 127.0.0.1:80
the all code
77 replies
RRailway
Created by lucaszdevmmyers616 on 3/13/2023 in #✋|help
AxiosError: connect ECONNREFUSED 127.0.0.1:80
try { const lotteriesArray = []; const promises = lotteries.map(async (lottery, index) => { const response = await lotteryApi.getLottery(lottery); lotteriesArray[index] = { lottery_name: response.nome, amount: response.valor_estimado_proximo_concurso, color: lotteryColors[index], date: response.data_concurso, tender_number: response.numero_concurso, description: lotteryDescription[index] }; }); Promise.all(promises).then(() => { res.status(200).json({ status: 200, lotteries: lotteriesArray }); }).catch(error => { res.status(500).json({ error: "Server error, please try again later." }); }); } catch (error) { res.status(500).json({ error: "Server error, please try again later." }); }
77 replies
RRailway
Created by lucaszdevmmyers616 on 3/13/2023 in #✋|help
AxiosError: connect ECONNREFUSED 127.0.0.1:80
the array is send empty
77 replies
RRailway
Created by lucaszdevmmyers616 on 3/13/2023 in #✋|help
AxiosError: connect ECONNREFUSED 127.0.0.1:80
if I do without promises
77 replies
RRailway
Created by lucaszdevmmyers616 on 3/13/2023 in #✋|help
AxiosError: connect ECONNREFUSED 127.0.0.1:80
the promises is to the map await until end to then return
77 replies
RRailway
Created by lucaszdevmmyers616 on 3/13/2023 in #✋|help
AxiosError: connect ECONNREFUSED 127.0.0.1:80
not work
77 replies
RRailway
Created by lucaszdevmmyers616 on 3/13/2023 in #✋|help
AxiosError: connect ECONNREFUSED 127.0.0.1:80
77 replies
RRailway
Created by lucaszdevmmyers616 on 3/13/2023 in #✋|help
AxiosError: connect ECONNREFUSED 127.0.0.1:80
It's not this, I change the Promise I have and worked, I don't know what the error is in Axios, but when I redeploy worked, the axios is right, this headers is custom there is no problem with my axios call, but thank you so much
77 replies
RRailway
Created by lucaszdevmmyers616 on 3/13/2023 in #✋|help
AxiosError: connect ECONNREFUSED 127.0.0.1:80
No, in localhost works fine
77 replies
RRailway
Created by lucaszdevmmyers616 on 3/13/2023 in #✋|help
AxiosError: connect ECONNREFUSED 127.0.0.1:80
ok
77 replies
RRailway
Created by lucaszdevmmyers616 on 3/13/2023 in #✋|help
AxiosError: connect ECONNREFUSED 127.0.0.1:80
I only call: lotteryApi.getLottery(...)
77 replies
RRailway
Created by lucaszdevmmyers616 on 3/13/2023 in #✋|help
AxiosError: connect ECONNREFUSED 127.0.0.1:80
it's only the call
77 replies
RRailway
Created by lucaszdevmmyers616 on 3/13/2023 in #✋|help
AxiosError: connect ECONNREFUSED 127.0.0.1:80
Why??? it's only this I send you, there is nothing more
77 replies
RRailway
Created by lucaszdevmmyers616 on 3/13/2023 in #✋|help
AxiosError: connect ECONNREFUSED 127.0.0.1:80
this way I call the endpoint I want and return the data
77 replies
RRailway
Created by lucaszdevmmyers616 on 3/13/2023 in #✋|help
AxiosError: connect ECONNREFUSED 127.0.0.1:80
export default class LotteryApi { getLottery = async (lottery) => { try { const { data } = await request.get('/resultado', { params: { loteria: lottery } }); return data; } catch (error) { console.error(error); } }; }
77 replies
RRailway
Created by lucaszdevmmyers616 on 3/13/2023 in #✋|help
AxiosError: connect ECONNREFUSED 127.0.0.1:80
77 replies