askmike / bitmex-simple-rest

simple rest API wrapper for bitmex
MIT License
11 stars 5 forks source link

empty non GET calls result in broken signature #3

Closed askmike closed 5 years ago

askmike commented 5 years ago

This is the response from a deleteAll call without any parameters.

{ Error: Signature not valid.
    at IncomingMessage.<anonymous> (/home/ec2-user/gb/nusadua/limbobeach/node_modules/bitmex-simple-rest/index.js:127:27)
    at IncomingMessage.emit (events.js:194:15)
    at endReadableNT (_stream_readable.js:1129:12)
    at process.internalTickCallback (internal/process/next_tick.js:72:19)
  statusCode: 401,
  headers:
   { date: 'Thu, 17 Jan 2019 07:20:21 GMT',
     'content-type': 'application/json; charset=utf-8',
     'content-length': '63',
     connection: 'keep-alive',
     'set-cookie':
      [ 'AWSALB=pqnHRpDFhUCWXNBdSNqs7qcXkt6VlbcycQF5x4cs3HFfeYjDAiTi8GiWbg+KysFFO1pauY/HveULSuCQ7wFcYvNRLPLUK+BPctTa7HaxBdxGoSVT3kQCODaY+yEu; Expires=Thu, 24 Jan 2019 07:20:21 GMT; Path=/' ],
     etag: 'W/"3f-dHGPr1ZkYjOYIJiU8wCn0/nue6I"',
     'strict-transport-security': 'max-age=31536000; includeSubDomains' } }