我如何发送请求在机器人框架它给出500服务器错误



//如何在机器人框架中发送请求它给出500服务器错误

//This is the request body that I want to send
{
"destinationFaxNumber": "9546599326",
"documentCount": 1
}
*** Variables ***
${base_Url}=    https://07du47r041.execute-api.us.com/dev/v1/outbound
*** Test Cases ***
Send Fax Request
${headers}=  create dictionary   Authorization=${Token}   Content-Type=application/json
#${file_data}=   Get Binary File  D:TestCases/SendFax.json //commented

${body}=    create dictionary    destinationFaxNumber=9546599326   documentCount=1 
create session  faxsession   ${base_Url}     headers=${headers}
log to console  ${body} 
${response}=    Post On Session    faxsession   /fax  data=${body}   headers=${headers}
However I'm getting below error

HTTP错误:500 Server Error: Internal Server Error for url: https://07du47r041.execute-api.us.com/dev/v1/outbound/fax

如果postman工作而RF不工作,则请求负载有99.99%的错误。捕获成功和失败请求的网络流量,并比较它们的不同之处。

例如,如果你可以访问linux box或任何具有netcat的机器,在某个端口上启动nc,并将url从postmanrf指向nc套接字,并在nc的控制台上查看请求差异。

相关内容

  • 没有找到相关文章

最新更新