theopenconversationkit / tock

Tock, the open source conversational AI toolkit.
https://doc.tock.ai
Apache License 2.0
500 stars 131 forks source link

405: Method Not Allowed while testing from studio #1368

Open revrkk opened 2 years ago

revrkk commented 2 years ago

I'm getting the error below when I test inside the studio.

tock-admin_web-1 | May 02, 2022 10:13:36 PM okhttp3.internal.platform.Platform log tock-admin_web-1 | INFO: --> POST http://localhost:8080/io/app/test/testntsatms/en tock-admin_web-1 | May 02, 2022 10:13:36 PM okhttp3.internal.platform.Platform log tock-admin_web-1 | INFO: Content-Type: application/json; charset=UTF-8 tock-admin_web-1 | May 02, 2022 10:13:36 PM okhttp3.internal.platform.Platform log tock-admin_web-1 | INFO: Content-Length: 259 tock-admin_web-1 | May 02, 2022 10:13:36 PM okhttp3.internal.platform.Platform log tock-admin_web-1 | INFO: tock-admin_web-1 | May 02, 2022 10:13:36 PM okhttp3.internal.platform.Platform log tock-admin_web-1 | INFO: {"userId":"test_62704b4025884157b739abef_en__vw5xx6ndm","recipientId":"test_bot_62704b4025884157b739abef_en","message":{"text":"Hi","messages":[],"eventType":"sentence","delay":0},"targetConnectorType":{"id":"web","userInterfaceType":"textChat"},"test":false} tock-admin_web-1 | May 02, 2022 10:13:36 PM okhttp3.internal.platform.Platform log tock-admin_web-1 | INFO: --> END POST (259-byte body) tock-admin_web-1 | 2022-05-02 22:13:36,259 INFO [vert.x-eventloop-thread-0] a.t.b.a.BotAdminVerticle: page not served (405): /io/app/test/testntsatms/en tock-admin_web-1 | May 02, 2022 10:13:36 PM okhttp3.internal.platform.Platform log tock-admin_web-1 | INFO: <-- 405 Method Not Allowed http://localhost:8080/io/app/test/testntsatms/en (3ms) tock-admin_web-1 | May 02, 2022 10:13:36 PM okhttp3.internal.platform.Platform log tock-admin_web-1 | INFO: content-type: text/plain tock-admin_web-1 | May 02, 2022 10:13:36 PM okhttp3.internal.platform.Platform log tock-admin_web-1 | INFO: tock-admin_web-1 | May 02, 2022 10:13:36 PM okhttp3.internal.platform.Platform log tock-admin_web-1 | INFO: Error 405: Method Not Allowed tock-admin_web-1 | May 02, 2022 10:13:36 PM okhttp3.internal.platform.Platform log tock-admin_web-1 | INFO: <-- END HTTP (29-byte body) tock-admin_web-1 | 2022-05-02 22:13:36,265 ERROR [vert.x-worker-thread-1] a.t.b.a.t.TestCoreService: error with BotApplicationConfiguration(applicationId=testntsatms, botId=ntsatms, namespace=app, nlpModel=ntsatms, connectorType=rest, ownerConnectorType=web, name=ntsatms, baseUrl=http://localhost:8080, parameters={}, path=/io/app/test/testntsatms, _id=62704b4025884157b739abef, targetConfigurationId=62704b4025884157b739abee) : Error 405: Method Not Allowed

This is what I did, I watched the following video to get started with Tock Studio (https://www.youtube.com/watch?v=UsKkpYL7Hto).

I tried the same. Created a new app, configuration, and stories. But, when I test it is returning technical error :( ] and behind the scenes, I observed the above error in the docker console.

Screen Shot 2022-05-03 at 1 13 40 AM

Here is my configuration,

Screen Shot 2022-05-03 at 1 13 18 AM Screen Shot 2022-05-03 at 1 12 48 AM
vsct-jburet commented 2 years ago

@revrkk do you deploy the bot server? Looks like the admin server does not found the bot server

Sim0nAl commented 1 year ago

Hi, I probably have the same issue. Here is the error I got from my bot server, I hope it will help : image

This is logs from the nlp_admin server : image

In the docker compose file, services ports are defined as: nlp_api: ports:

odysseus_api: ports:

vsct-jburet commented 11 months ago

Look at the tock-docker projet. I have just tested the conf and it works, see https://github.com/theopenconversationkit/tock-docker/issues/32