Nexmo / comms-router

A server which allows you to route tasks to agents.
Apache License 2.0
19 stars 11 forks source link

Npe on create task with no requirements #99

Closed angel-popov closed 6 years ago

angel-popov commented 6 years ago

Description:Create new task to queue q0PyGVN6jf6TBjRSDUBgb2, plan NULL and context {"key":"value"}. Result:FAIL Request:curl -s -X POST 'http://192.168.1.166:8080/comms-router-web-pure/api/routers/VOfvMO5E7mFnEuFIyIXJg/tasks' -H 'Content-type:application/json' -d "{\"tag\":null,\"callbackUrl\":\"http://localhost:4343/task?router=VOfvMO5E7mFnEuFIyIXJg&sleep=1\",\"userContext\":{\"key\":\"value\"},\"requirements\":null,\"queueRef\":\"q0PyGVN6jf6TBjRSDUBgb2\",\"planRef\":null}" Response:{"error":{"code":"NullPointerException","description":"NULLS, NULLS EVERYWHERE"},"information":{"url":"https://www.google.bg/search?q=nulls+everywhere&tbm=isch"}}