toncenter / ton-http-api

HTTP API for TON (The Open Network)
https://toncenter.com
GNU General Public License v3.0
219 stars 42 forks source link

Testnet error on sendBoc endpoint #77

Open leoenes opened 1 year ago

leoenes commented 1 year ago

Hello,

After calling the endpoint 'http://$LOCAL_IP:8081/sendBoc', I'm receiving the error message:

{
  "ok": false,
  "error": "LITE_SERVER_UNKNOWN: cannot apply external message to current state : failed to parse external message external message is not a valid bag of cells",
  "code": 500
}

It just happens when I use the modified testnet.json (the one that points to my own lite server). All others endpoints are working with this configuration, by now.

PS: In mainnet, seems ok!

EmelyanenkoK commented 1 year ago

Can you please show example of BOC which causes this error?

leoenes commented 1 year ago

Hello, I recreated here the docker pointinhg to last version of master, and I think it worked correctly. I will close the issue here.

leoenes commented 1 year ago

Actually, it happened again:

We are receiving the same error:

{
  "ok": false,
  "error": "LITE_SERVER_UNKNOWN: cannot apply external message to current state : failed to parse external message external message is not a valid bag of cells",
  "code": 500
}

A payload example:

{
  "boc": "te6cckEBAgEAzwAB4YgAaOx9ME+MjYczfVzZok/avgK2NZbgWgVB9jUm1rtwJH4E7JLnUpe4kloMUFPMPnwRRK9wUzsgzcTwynIEOYnhzhIjf5CrxeqEPqMI4VRcZE3y1Sq7gVsj75byCnkj19egEU1NGLseKm5gAAAAkAAcAQCyQgADkodQWbGsAL2Y2P2XOU1Q0zvMtDH6VBO3eyhCZ5WGDYgIAAAAAAAAAAAAAAAAAAAAAABmMGUxN2JmOS1mOWUwLTRkNDctOTI4OS1hM2RlNmU2ODI5ZDgDQL8n"
}