Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"quoted psk2 source amount exceeds max acceptable price. " Error when I tried ilp-curl #8

Open
Fy45 opened this issue Jun 17, 2019 · 0 comments

Comments

@Fy45
Copy link

Fy45 commented Jun 17, 2019

Hi,

I've started the moneyd and tried the ilp-curl as the tutorial told, see in https://github.com/interledgerjs/moneyd#sending-payments.
However, I came across the error with testnet using the command ilp-curl -X POST https://unhash.ilp-test.com --data @example.txt the error indicates: quoted psk2 source amount exceeds max acceptable price. sourceAmount=Infinity maxPrice=100000
After I run DEBUG=* ilp-curl -X POST https://unhash.ilp-test.com --data @example.txt
The results show:

ilp-plugin creating plugin with module ilp-plugin-btp +0ms
ilp-curl loading file example.txt +0ms
ilp-curl running +0ms
ilp-plugin-btp:trace connected to server +0ms
ilp-plugin-btp:trace sending btp packet. type=TYPE_MESSAGE requestId=362718840 info=auth=;auth_username=;auth_token=355d1b73d68684a81daf9378d7018b24 +4ms
ilp-plugin-btp:trace received btp packet. type=TYPE_RESPONSE requestId=362718840 info= +3ms
ilp-curl connected +21ms
ilp-fetch:info attempting http request. url=https://unhash.ilp-test.com opts= { method: 'POST',
redirect: 'follow',
follow: 0,
headers: { 'Content-Type': 'application/octet-stream' },
body:
<Buffer 54 68 69 73 20 69 73 20 6d 79 20 65 78 61 6d 70 6c 65 20 66 69 6c 65 0a>,
plugin:
AbstractBtpPlugin {
_events: {},
_newListener: false,
_removeListener: false,
verboseMemoryLeak: false,
_maxListeners: 10,
_readyState: 2,
_wss: null,
_reconnectInterval: undefined,
_reconnectIntervals: undefined,
_reconnectClearTryTimeout: undefined,
_responseTimeout: 35000,
_listener: undefined,
_server: 'btp+ws://:355d1b73d68684a81daf9378d7018b24@localhost:7768',
_btpToken: '355d1b73d68684a81daf9378d7018b24',
_btpAccount: '',
_log:
Logger {
info: [Function],
warn: [Function],
error: [Function],
debug: [Function],
trace: [Function] },
WebSocket:
{ [Function: WebSocket]
CONNECTING: 0,
OPEN: 1,
CLOSING: 2,
CLOSED: 3,
Server: [Function: WebSocketServer],
Receiver: [Function: Receiver],
Sender: [Function: Sender] },
WebSocketServer: [Function: WebSocketServer],
_ws:
WebSocketReconnector {
_events: [Object],
_newListener: false,
_removeListener: false,
verboseMemoryLeak: false,
_maxListeners: 10,
WebSocket: [Function],
_clearTryTimeout: 10000,
_tries: 0,
_intervals: [Array],
_url: 'ws://localhost:7768',
_instance: [WebSocket],
event: 'message',
_heartbeatTimer:
Timeout {
_called: false,
_idleTimeout: 20000,
_idlePrev: [TimersList],
_idleNext: [TimersList],
_idleStart: 237,
_onTimeout: [Function],
_timerArgs: undefined,
_repeat: null,
_destroyed: false,
[Symbol(unrefed)]: false,
[Symbol(asyncId)]: 21,
[Symbol(triggerId)]: 8 } },
event: '_first_time_connect' },
maxPrice: 100000 } +0ms
ilp-fetch:trace parsed Pay header. method=interledger-psk2 params= [ 'test.strata-ilsp-3.xrpTestChildren.i9ESP2Org2PP1Es9kMeCtQM5vxpQLRp0DYTswx6GU10.local.erHMafJvoFjHhA7LqFGgRHH0Rus1IeJOf3HJ0KDwvMA.zdSMFB15nNOTZieFzpvziXxJ',
'LMJMVf6oZ5VOgAdDjxZlbJwdWEEVQNrIn3iMuCvHMSw=',
'70' ] +0ms
ilp-fetch:trace using PSK2 handler. +0ms
ilp-fetch:trace connecting plugin +1ms
ilp-fetch:trace calling handler. +0ms
ilp-fetch:psk2 quoting destination amount via psk2. amount=70 account=test.strata-ilsp-3.xrpTestChildren.i9ESP2Org2PP1Es9kMeCtQM5vxpQLRp0DYTswx6GU10.local.erHMafJvoFjHhA7LqFGgRHH0Rus1IeJOf3HJ0KDwvMA.zdSMFB15nNOTZieFzpvziXxJ +0ms
ilp-psk2:sendRequest using user-specified unfulfillable condition for request: 2730776943 +0ms
ilp-psk2:sendRequest sending request 2730776943 for amount: 1000 +1ms
ilp-plugin-btp:trace sending btp packet. type=TYPE_MESSAGE requestId=3907695372 info=ilp-prepare +901ms
ilp-plugin-btp:trace received btp packet. type=TYPE_RESPONSE requestId=3907695372 info=ilp-reject +20ms
ilp-psk2:sendRequest request 2730776943 was rejected with code: F02 +23ms
quoted psk2 source amount exceeds max acceptable price. sourceAmount=Infinity maxPrice=100000

Now I could not find any error code with F02. Do you know how to fix this issue? Thanks for the help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant