Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.71 KB | None | 0 0
  1. REQUEST 1 (with 201 status response)
  2.  
  3. Headers:
  4. Request URL:https://yalantis.goabode.com/api/v1/devices/RF:38976742
  5. Request Method:POST
  6. Status Code:201 Created
  7. Remote Address:34.214.131.217:443
  8. Referrer Policy:no-referrer-when-downgrade
  9.  
  10.  
  11. Response headers:
  12. Access-Control-Allow-Headers:ABODE-API-KEY, Origin, X-Requested-With, Content-Type, Accept, Access-Control-Request-Method
  13. Access-Control-Allow-Methods:GET, POST, OPTIONS, PUT, DELETE
  14. Access-Control-Allow-Origin:*
  15. Cache-Control:no-store, no-cache, must-revalidate
  16. Connection:keep-alive
  17. Content-Encoding:gzip
  18. Content-Type:application/json; charset=utf-8
  19. Date:Fri, 23 Feb 2018 13:57:46 GMT
  20. Expires:Thu, 19 Nov 1981 08:52:00 GMT
  21. Pragma:no-cache
  22. Server:nginx/1.12.2
  23. Transfer-Encoding:chunked
  24. Vary:Accept-Encoding
  25. X-Powered-By:PHP/7.0.12
  26.  
  27.  
  28. Request headers:
  29.  
  30. ABODE-API-KEY:web-47f7e84949a8edbe8bcb3a52eab2b918
  31. Accept:application/json, text/plain, */*
  32. Accept-Encoding:gzip, deflate, br
  33. Accept-Language:ru,en-US;q=0.9,en;q=0.8,pt-BR;q=0.7,pt;q=0.6
  34. Authorization:Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIzMjQzMTQxOSIsImlhdCI6MTUxOTM5MjU5NiwiZXhwIjoxNTE5Mzk2MTk2LCJpc3MiOiJodHRwczpcL1wvemlncm9uLmdvYWJvZGUuY29tIiwiYXVkIjpbImh0dHBzOlwvXC96aWdyb24uZ29hYm9kZS5jb20iXSwiaHR0cDpcL1wvZ29hYm9kZS5jb21cL2NsYWltc1wvMjAxN1wvbWFjIjoiRkY6MDA6QTA6MDA6MDA6MDEifQ.7pdFs4MQH5A3gXazKUMK0EM_SHnmi05TBM5qEsO7_1A
  35. Connection:keep-alive
  36. Content-Length:40
  37. Content-Type:application/x-www-form-urlencoded
  38. Cookie:SESSION-STAGE=v359161gqil57crgc3a7knui24; horizontalMenu.isVisible=false; horizontalMenu.isFixed=true; horizontalMenu.minimal=false; horizontalMenu.clickToExpand=false; sidebar.isVisible=true; sidebar.isCollapsed=false; sidebar.toggleOthers=true; sidebar.isFixed=true; sidebar.isRight=false; chat.isOpen=false; container.isBoxed=false; skins.sidebarMenu=; skins.horizontalMenu=; skins.userInfoNavbar=; uuid=3c54e1780d825999f0702b24abdfa6c9; updateFirmware=true; key=web-47f7e84949a8edbe8bcb3a52eab2b918; io=ISXXFICJvcEPkjwcAADP; AWSALB=um7BKbXrgxZrOnQfPONgmWZ2VrLO57DE0CUsgaTp5aNEDDz++7uRcG91ugahKNLIZbWigBN+azXIJ+mALKVeXNq+29/79yuVs9CBZA2LkynkpPRC39mzQnuLHwWW
  39. Host:yalantis.goabode.com
  40. Origin:https://yalantis.goabode.com
  41. Referer:https://yalantis.goabode.com/
  42. User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36
  43.  
  44.  
  45.  
  46. Response body:
  47. {"id":"RF:38976742","name":"Door Contact","bypass":"0","is_window":"0"}
  48.  
  49.  
  50. ----------------------------------------------------------------------------------------------------
  51. REQUEST 2 (with 500 status response)
  52.  
  53. Headers:
  54. Request URL:https://yalantis.goabode.com/api/v1/devices/RF:38976742
  55. Request Method:POST
  56. Status Code:500
  57. Remote Address:54.69.60.1:443
  58. Referrer Policy:no-referrer-when-downgrade
  59.  
  60. Response headers:
  61. access-control-allow-headers:ABODE-API-KEY, Origin, X-Requested-With, Content-Type, Accept, Access-Control-Request-Method
  62. access-control-allow-methods:GET, POST, OPTIONS, PUT, DELETE
  63. access-control-allow-origin:*
  64. cache-control:no-store, no-cache, must-revalidate
  65. content-length:299
  66. content-type:text/plain;charset=UTF-8
  67. date:Fri, 23 Feb 2018 13:58:12 GMT
  68. expires:Thu, 19 Nov 1981 08:52:00 GMT
  69. pragma:no-cache
  70. server:nginx/1.12.2
  71. status:500
  72. x-powered-by:PHP/7.0.12
  73.  
  74. Request headers:
  75. :authority:yalantis.goabode.com
  76. :method:POST
  77. :path:/api/v1/devices/RF:38976742
  78. :scheme:https
  79. abode-api-key:web-47f7e84949a8edbe8bcb3a52eab2b918
  80. accept:application/json, text/plain, */*
  81. accept-encoding:gzip, deflate, br
  82. accept-language:ru,en-US;q=0.9,en;q=0.8,pt-BR;q=0.7,pt;q=0.6
  83. authorization:Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIzMjQzMTQxOSIsImlhdCI6MTUxOTM5MjU5NiwiZXhwIjoxNTE5Mzk2MTk2LCJpc3MiOiJodHRwczpcL1wvemlncm9uLmdvYWJvZGUuY29tIiwiYXVkIjpbImh0dHBzOlwvXC96aWdyb24uZ29hYm9kZS5jb20iXSwiaHR0cDpcL1wvZ29hYm9kZS5jb21cL2NsYWltc1wvMjAxN1wvbWFjIjoiRkY6MDA6QTA6MDA6MDA6MDEifQ.7pdFs4MQH5A3gXazKUMK0EM_SHnmi05TBM5qEsO7_1A
  84. content-length:40
  85. content-type:application/x-www-form-urlencoded
  86. cookie:SESSION-STAGE=v359161gqil57crgc3a7knui24; horizontalMenu.isVisible=false; horizontalMenu.isFixed=true; horizontalMenu.minimal=false; horizontalMenu.clickToExpand=false; sidebar.isVisible=true; sidebar.isCollapsed=false; sidebar.toggleOthers=true; sidebar.isFixed=true; sidebar.isRight=false; chat.isOpen=false; container.isBoxed=false; skins.sidebarMenu=; skins.horizontalMenu=; skins.userInfoNavbar=; uuid=3c54e1780d825999f0702b24abdfa6c9; updateFirmware=true; key=web-47f7e84949a8edbe8bcb3a52eab2b918; io=ISXXFICJvcEPkjwcAADP; AWSALB=um7BKbXrgxZrOnQfPONgmWZ2VrLO57DE0CUsgaTp5aNEDDz++7uRcG91ugahKNLIZbWigBN+azXIJ+mALKVeXNq+29/79yuVs9CBZA2LkynkpPRC39mzQnuLHwWW
  87. origin:https://yalantis.goabode.com
  88. referer:https://yalantis.goabode.com/
  89. user-agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36
  90.  
  91.  
  92. Response body:
  93.  
  94. <div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
  95.  
  96. <h4>A PHP Error was encountered</h4>
  97.  
  98. <p>Severity: Notice</p>
  99. <p>Message: Undefined offset: 8</p>
  100. <p>Filename: controllers/v1.php</p>
  101. <p>Line Number: 1701</p>
  102.  
  103. </div>{"id":"RF:38976742","name":"Door Contact","bypass":"0"}
  104.  
  105. ------------------------------------------------------------------------------------------------------------
  106. REQUEST 3 (with 400 status, received these all the time after 500 on attempt to add device by clicking 'Continue' button)
  107.  
  108. Headers:
  109. Request URL:https://yalantis.goabode.com/api/v1/devices/RF:38976742
  110. Request Method:PUT
  111. Status Code:400
  112. Remote Address:54.69.60.1:443
  113. Referrer Policy:no-referrer-when-downgrade
  114.  
  115. Response headers:
  116. access-control-allow-headers:ABODE-API-KEY, Origin, X-Requested-With, Content-Type, Accept, Access-Control-Request-Method
  117. access-control-allow-methods:GET, POST, OPTIONS, PUT, DELETE
  118. access-control-allow-origin:*
  119. cache-control:no-store, no-cache, must-revalidate
  120. content-encoding:gzip
  121. content-type:application/json; charset=utf-8
  122. date:Fri, 23 Feb 2018 13:58:00 GMT
  123. expires:Thu, 19 Nov 1981 08:52:00 GMT
  124. pragma:no-cache
  125. server:nginx/1.12.2
  126. status:400
  127. vary:Accept-Encoding
  128. x-powered-by:PHP/7.0.12
  129.  
  130. Request headers:
  131. :authority:yalantis.goabode.com
  132. :method:PUT
  133. :path:/api/v1/devices/RF:38976742
  134. :scheme:https
  135. abode-api-key:web-47f7e84949a8edbe8bcb3a52eab2b918
  136. accept:application/json, text/plain, */*
  137. accept-encoding:gzip, deflate, br
  138. accept-language:ru,en-US;q=0.9,en;q=0.8,pt-BR;q=0.7,pt;q=0.6
  139. authorization:Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIzMjQzMTQxOSIsImlhdCI6MTUxOTM5MjU5NiwiZXhwIjoxNTE5Mzk2MTk2LCJpc3MiOiJodHRwczpcL1wvemlncm9uLmdvYWJvZGUuY29tIiwiYXVkIjpbImh0dHBzOlwvXC96aWdyb24uZ29hYm9kZS5jb20iXSwiaHR0cDpcL1wvZ29hYm9kZS5jb21cL2NsYWltc1wvMjAxN1wvbWFjIjoiRkY6MDA6QTA6MDA6MDA6MDEifQ.7pdFs4MQH5A3gXazKUMK0EM_SHnmi05TBM5qEsO7_1A
  140. content-length:60
  141. content-type:application/x-www-form-urlencoded
  142. cookie:SESSION-STAGE=v359161gqil57crgc3a7knui24; horizontalMenu.isVisible=false; horizontalMenu.isFixed=true; horizontalMenu.minimal=false; horizontalMenu.clickToExpand=false; sidebar.isVisible=true; sidebar.isCollapsed=false; sidebar.toggleOthers=true; sidebar.isFixed=true; sidebar.isRight=false; chat.isOpen=false; container.isBoxed=false; skins.sidebarMenu=; skins.horizontalMenu=; skins.userInfoNavbar=; uuid=3c54e1780d825999f0702b24abdfa6c9; updateFirmware=true; key=web-47f7e84949a8edbe8bcb3a52eab2b918; io=ISXXFICJvcEPkjwcAADP; AWSALB=um7BKbXrgxZrOnQfPONgmWZ2VrLO57DE0CUsgaTp5aNEDDz++7uRcG91ugahKNLIZbWigBN+azXIJ+mALKVeXNq+29/79yuVs9CBZA2LkynkpPRC39mzQnuLHwWW
  143. origin:https://yalantis.goabode.com
  144. referer:https://yalantis.goabode.com/
  145. user-agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36
  146.  
  147. Response body:
  148. {"code":400,"message":"Device not found.","title":"","detail":null}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement