everx-labs/debots

hellodebot: ./deploy_debot.sh gives "first block failed: Can not parse http request: Body is not a valid JSON"

kostrik2 opened this issue · 0 comments

ann@ann:~/mega/stage/debots/helloworld$ docker rm -f $(docker ps -a -q)

bc4bf6cbf3ea

ann@ann:~/mega/stage/debots/helloworld$ tondev se start

Creating tonlabs-tonos-se-ann... ✓
Starting tonlabs-tonos-se-ann... ✓

ann@ann:~/mega/stage/debots/helloworld$ docker ps

CONTAINER ID   IMAGE                       COMMAND          CREATED         STATUS         PORTS                                                       NAMES
778db7861fe6   tonlabs/local-node:0.28.3   "honcho start"   5 seconds ago   Up 4 seconds   3000/tcp, 8529/tcp, 0.0.0.0:2020->80/tcp, :::2020->80/tcp   tonlabs-tonos-se-ann

ann@ann:~/mega/stage/debots/helloworld$ ./deploy_debot.sh

./tonos-cli exists.
GENADDR DEBOT
ASK GIVER
Config: default
Input arguments:
 address: 0:841288ed3b55d9cdafa806807f02a0ae0c169aa5edfe88a789a6482429756a94
  method: sendGrams
  params: {"dest":"0:b87f8eaa731a2d5f19a8c13f713ea4460be89d595e3c27d04a432840324ccca4","amount":10000000000}
     abi: ../local_giver.abi.json
    keys: None
lifetime: None
  output: None
Connecting to http://127.0.0.1
Generating external inbound message...

MessageId: de798b9fe396c9fd870f3fb6a602d7a81cbdd84db213c1f1927e58a3cb14f416
Expire at: unknown
Processing... 
Error: Failed: {
  "code": 504,
  "message": "Fetch first block failed: Can not parse http request: Body is not a valid JSON: expected value at line 1 column 1\n<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>404 Not Found</title>\n</head><body>\n<h1>Not Found</h1>\n<p>The requested URL was not found on this server.</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at 127.0.0.1 Port 80</address>\n</body></html>\n",
  "data": {
    "message_id": "de798b9fe396c9fd870f3fb6a602d7a81cbdd84db213c1f1927e58a3cb14f416",
    "core_version": "1.12.0"
  }
}
Error: 1

I have added the tondev se port number to deploy_debot.sh like this: http://127.0.0.1:2020, so it works now.