Opened 7 years ago

Closed 7 years ago

#1193 closed defect (invalid)

api.getbux.com error 400

Reported by: gavi.rodriguez@… Owned by:
Priority: minor Milestone:
Component: other Version: 1.9.x
Keywords: Cc:
uname -a: Linux xgavix-tradig-4305214 4.2.0-c9 #2 SMP Thu Oct 20 09:52:05 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
nginx -V: nginx version: nginx/1.4.6 (Ubuntu)

Description

Could you help me about the following error message:

_header: 'POST /core/13/users/me/trades HTTP/1.1\r\nHost: api.getbux.com\r\nAccept-Encoding: gzip, deflate\r\nUser-Agent: okhttp/3.2.0\r\nAuthorization: Bearer TOKENNIII\r\nX-App-Version: 1.36-2697\r\nAccept-Language: en\r\nContent-Type: application/json; charset=UTF-8\r\nContent-Length: 126\r\nConnection: close\r\n\r\n',

_headers: [Object],
_headerNames: [Object],
_onPendingData: null,
agent: [Object],
socketPath: undefined,
method: 'POST',
path: '/core/13/users/me/trades',
_ended: true,
parser: null,
res: [Object] },

links: {},
text: '{"message":"Available Cash: [EUR 63.68], RingFenced Amount [13.6840]","developerMessage":"Available Cash: [EUR 63.68], RingFenced Amount [13.6840]","errorCode":"TRADING_010"}',
body:

{ message: 'Available Cash: [EUR 63.68], RingFenced Amount [13.6840]',

developerMessage: 'Available Cash: [EUR 63.68], RingFenced Amount [13.6840]',
errorCode: 'TRADING_010' },

files: undefined,
buffered: true,
headers:

{ server: 'nginx',

date: 'Tue, 31 Jan 2017 12:18:31 GMT',
'content-type': 'application/json;charset=UTF-8',
'transfer-encoding': 'chunked',
connection: 'close',
pragma: 'no-cache',
expires: 'Thu, 01 Jan 1970 00:00:00 GMT',
'cache-control': 'no-cache, no-store',
'content-encoding': 'gzip',
vary: 'Accept-Encoding' },

header:

{ server: 'nginx',

date: 'Tue, 31 Jan 2017 12:18:31 GMT',
'content-type': 'application/json;charset=UTF-8',
'transfer-encoding': 'chunked',
connection: 'close',
pragma: 'no-cache',
expires: 'Thu, 01 Jan 1970 00:00:00 GMT',
'cache-control': 'no-cache, no-store',
'content-encoding': 'gzip',
vary: 'Accept-Encoding' },

statusCode: 400,
status: 400,
statusType: 4,
info: false,
ok: false,
redirect: false,
clientError: true,
serverError: false,
error:

{ [Error: cannot POST /core/13/users/me/trades (400)]

status: 400,
text: '{"message":"Available Cash: [EUR 63.68], RingFenced Amount [13.6840]","developerMessage":"Available Cash: [EUR 63.68], RingFenced Amount [13.6840]","errorCode":"TRADING_010"}',
method: 'POST',
path: '/core/13/users/me/trades' },

accepted: false,
noContent: false,
badRequest: true,
unauthorized: false,
notAcceptable: false,
forbidden: false,
notFound: false,
charset: 'UTF-8',
type: 'application/json',
setEncoding: [Function: bound ],
redirects: [] },

status: 400 }

MAx value: -8.9 - -2
inside purchase!
{ product: 'DAX', direction: 'BUY', size: 50, multiplier: 10 }
*
Error!!!
{ [Error: Bad Request]

cause:

{ [Error: Bad Request]

original: null,
response:

Response {

domain: null,
_events: {},
_eventsCount: 0,
_maxListeners: undefined,
res: [Object],
request: [Object],
req: [Object],
links: {},
text: '{"message":"Available Cash: [EUR 63.68], RingFenced Amount [13.6840]","developerMessage":"Available Cash: [EUR 63.68], RingFenced Amount [13.6840]","errorCode":"TRADING_010"}',
body: [Object],
files: undefined,
buffered: true,
headers: [Object],
header: [Object],
statusCode: 400,
status: 400,
statusType: 4,
info: false,
ok: false,
redirect: false,
clientError: true,
serverError: false,
error: [Object],
accepted: false,
noContent: false,
badRequest: true,
unauthorized: false,
notAcceptable: false,
forbidden: false,
notFound: false,
charset: 'UTF-8',
type: 'application/json',
setEncoding: [Function: bound ],
redirects: [] },

status: 400 },

isOperational: true,
original: null,
response:

Response {

domain: null,
_events: {},
_eventsCount: 0,
_maxListeners: undefined,
res:

IncomingMessage {

_readableState: [Object],
readable: false,
domain: null,
_events: [Object],
_eventsCount: 3,
_maxListeners: undefined,
socket: [Object],
connection: [Object],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
headers: [Object],
rawHeaders: [Object],
trailers: {},
rawTrailers: [],
upgrade: false,
url: ,
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [Object],
_consuming: true,
_dumped: false,
req: [Object],
setEncoding: [Function],
on: [Function],
text: '{"message":"Available Cash: [EUR 63.68], RingFenced Amount [13.6840]","developerMessage":"Available Cash: [EUR 63.68], RingFenced Amount [13.6840]","errorCode":"TRADING_010"}',
read: [Function],
body: [Object] },

Change History (1)

comment:1 by Maxim Dounin, 7 years ago

Resolution: invalid
Status: newclosed

This doesn't looks like a bug in nginx. If you need help with a particular site, consider asking the site support instead.

Note: See TracTickets for help on using tickets.