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

Laravel Error Monero Issue #13

Closed
Gralien opened this issue Feb 2, 2022 · 3 comments
Closed

Laravel Error Monero Issue #13

Gralien opened this issue Feb 2, 2022 · 3 comments

Comments

@Gralien
Copy link
Collaborator

Gralien commented Feb 2, 2022

Hi.
Monero-integration
When I attempt to finalize transactions by pressing the purchase "mark as delivered" on order page the site returns
"error happened, try again later"

But The funds go through and all is correctly transferred and the error persists.

log/laravel
[TIME/DATE] local.ERROR: Purchase xxx :Request have return error: not enough money;
Request: {"jsonrpc":"2.0","method":"transfer","params":{"destinations":[{"amount":31543530000,"address":"4XXX"}],"mixin":6,"get_tx_key":true,"payment_id":"","account_index":0,"subaddr_indices":"","priority":2,"do_not_relay":false},"id":1};

Purchase wont finalize and mark delivered but the funds are sent. Cant mark sale as delivered on the site even though funds are sent to vendor successfully.

@Gralien Gralien changed the title Laravel Error RPC Monero Issue Laravel Error Monero Issue Feb 5, 2022
@Gralien
Copy link
Collaborator Author

Gralien commented Feb 9, 2022

the true error in the stack trace;

"fail timeout json_rpc Error: Operation timed out after 8001 milliseconds"
RPC timeout is triggering site error while the transaction is successful and takes longer than 8 seconds to render results back.

im going to suspect a default timeout of 8 set in
/app/Marketplace/Utility/MoneroRPC/jsonRPCClient.php

CURLOPT_CONNECTTIMEOUT => 8,
CURLOPT_TIMEOUT => 8

as the culprit. and adjust accordingly. RPC server seems to be taking 30 + seconds with the intensive logging on.
//On HDD vs SSD, HDD will take more processing time triggering a timeout?
//possible that setting higher RPC server log values slows process even further?

this type of issue could end up being the solution to intermittent RPC connectivity between site and node.

will close issue if successful.

@Gralien
Copy link
Collaborator Author

Gralien commented Feb 10, 2022

Correct solution;
CURLOPT_CONNECTTIMEOUT => 0,
CURLOPT_TIMEOUT => 0

@Gralien
Copy link
Collaborator Author

Gralien commented Feb 10, 2022

closed

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