creation of Bridge errored: Returned error: {"jsonrpc":"2.0","error":"[ethjs-query] while formatting outputs from RPC '{\"value\":{\"code\":-32603,\"data\":{\"message\":\"Internal Server Error\"}}}'","id":965808886590268}

Sorry, I don't understand this error I get when trying to deploy a contract

Aug 20, 2023, 1:32 PM
change RPC
Aug 20, 2023, 1:36 PM
I'm using remix
That's why the error isn't even having head for me
Aug 20, 2023, 1:39 PM
yes ,you can try custom RPC network
https://chainlist.org/
Aug 20, 2023, 1:41 PM
Thanks.
Where can I get free RPC credits
I use getBlock but it's not enough, apparently πŸ₯²
Aug 20, 2023, 4:03 PM
What rpc are you using? How many calls are you making per second
Aug 20, 2023, 4:05 PM
I'm using a websocket RPC
And it seems to be draining the free daily credits I get from getBlock
Aug 20, 2023, 4:06 PM
If it’s too many calls you might need to get a paid one or optimize your code
Aug 20, 2023, 4:08 PM
I'm going for the paid version when I want to push the code live
But for now, is it that websocket makes a lot of calls?
Aug 20, 2023, 4:08 PM
What are u trying to do with wss??
Aug 20, 2023, 4:10 PM
Listen for events on a smart contract
Aug 20, 2023, 4:11 PM
Try blast node
Aug 20, 2023, 4:17 PM
Found 'em
Thanks
Aug 20, 2023, 4:19 PM
πŸ‘
Aug 20, 2023, 4:25 PM
One last bitching from me πŸ₯²

BSC.on(filter, async (event) => {
const [from, to, value] = event.args;
await BscToTrc(from, to, value.toString());
});
For some reason, the function in my event handler gets called, twice
When I host it on my machine, it doesn't seem to behave that way, but when I hosted it on Digital Ocean using pm2 to run it as daemon, it gets called twice, every time
Btw, I'm still looking for a Tron Chain developer. Any available should please send me a DM. Thanks
Aug 20, 2023, 4:39 PM
What do u need??
Without the full code is hard to find the issue
Aug 20, 2023, 4:40 PM
How to handle events on the chain
For a start, it shouldn't call the function twice right?
If you're okay with it, I can send you a DM with the function called
Aug 20, 2023, 4:42 PM
I dont know, if function is not called twice locally
It shouldnt be different running on a server
Aug 20, 2023, 4:44 PM
I honestly don't get why it behaves this way though
I do have two functions running in the main()
One is the BSC.on() and the other is a setInterval loop I used as a way to represent an event subscription to check for the event emitted on the Tron Chain
Could probably be that?
Aug 20, 2023, 4:46 PM
Are u running same code both deployments??
I mean locally and server side
Aug 20, 2023, 4:48 PM
No
Aug 20, 2023, 4:52 PM
Why?
If your code works fine on your computer
Aug 20, 2023, 4:59 PM
I want it to be on a server.
So I usually end the script on my local machine, before I start it on the server
Aug 20, 2023, 5:00 PM
Yeah ofc i meant if u are running same code not at the same time 😁
So there are no differences between both codes
Maybe there is some setting on server running twice
Ive never had that issue honestly
Aug 20, 2023, 5:02 PM
Oh, yeah. It's same code. I misread I guess
I can't say for sure
Aug 20, 2023, 5:03 PM
Could u try other server?
Heroku or ec2
Aug 20, 2023, 5:05 PM
Used a lot oof chatGPT to host this script on DO πŸ˜‚
Not sure I can do the same on Heroku or EC2
Aug 20, 2023, 5:06 PM
Its a python script?
Aug 20, 2023, 5:07 PM
I was thinking the problem was with pm2
the process manager
Aug 20, 2023, 5:08 PM
Why?
I use pm2 to run my bots
Aug 20, 2023, 5:08 PM
I guess its a popular option
And you host those bots on Heroku?
I tried using raleway at first, but it seems to only host sites, like an API url and stuff, not run a script
Aug 20, 2023, 5:10 PM
Ive been using heroku
Now im running everything on my own server
Aug 20, 2023, 5:11 PM
Damn
Aug 20, 2023, 5:12 PM
You can try send { data: "0x... contract bytecode", to: null }
Aug 20, 2023, 5:12 PM
Oh, that was an RPC error. someone pointed that out to me. thanks
Can we do like a poll here
I want to know if I'm the only one suffering from Short term memory losses since I started coding 🫠🫠🫠🫠
Aug 20, 2023, 5:29 PM
Same problem here
πŸ˜†
Aug 20, 2023, 5:37 PM
A brotha 😎
[ethjs-query] while formatting outputs from RPC '{"value":{"code":-32603,"data":{"code":-32000,"message":"already known"}}}'

Here is an error I get from the server
ChatGPT explanation isn't concise
S.O responses weren't helpful at all either
Aug 20, 2023, 7:18 PM
isn't this the error you get when you send the same tx two times?
try to check the nonces of your tx
Aug 20, 2023, 7:37 PM
Hm, 🧐 My event listener calls the withdraw() twice
I can't seem to understand why
On the local environment, it doesn't run into this kinda issue
Will do. Guess the Tron Chain doesn't check for nonces?
Cause they execute almost at the same timeframe
Aug 20, 2023, 7:41 PM
Check how many instances of your script are running. Close them all
Aug 20, 2023, 7:42 PM
yeah it's the nonce πŸ˜†i had the same problem on my first try with web3.py
fetch the nonce only one time, then use a local variable to increase it, set it manually in the tx and you're good to go
Aug 20, 2023, 7:42 PM
Its just one
thanks, let me try
Turns out, my script was executing fine on railway 🫠🫠
Thanks everyone, for your inputs
Aug 20, 2023, 9:11 PM

Β© 2024 Draquery.com All rights reserved.