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

Error in transfer send to api with lib sdk-go #8

Open
informeai opened this issue Sep 8, 2023 · 1 comment
Open

Error in transfer send to api with lib sdk-go #8

informeai opened this issue Sep 8, 2023 · 1 comment

Comments

@informeai
Copy link

informeai commented Sep 8, 2023

Hello, all right, the sdk-go lib is showing errors related to the call after transfers, the same are happening in high peaks of calls, is there any reason to explain this situation?

Captura de Tela 2023-09-08 às 12 34 47

Analize da stack de error:

Send transfer it uses the starkbank lib.

Path → starkbank/transfer/transfer.go on line 82 he is the method utils.Multi(…) of the lib.

Captura de Tela 2023-07-31 às 15 26 55

Path: starkbank/utils/relay.go on line 49 makes call to method rest.PostMulti(…) of lib:
"github.com/starkinfra/core-go/starkcore/utils/rest"

Captura de Tela 2023-07-31 às 15 29 41

Path: starkinfra/core-go/starkcore/utils/rest/rest.go on line 180 execute call to api:
Captura de Tela 2023-07-31 às 15 34 20

Path: starkinfra/core-go/blob/master/starkcore/utils/request/request.go on line 58 received result from api:
Captura de Tela 2023-07-31 às 15 44 30

on line 57 not verify error in readAll Body, without this validation, an error may occur when reading the payload and we would not know since it is not being validated.

panic: runtime error: invalid memory address or nil pointer dereference:

indicates that you tried to access a variable or property that was not present.
Note: Response{Status: rawResponse.StatusCode, Content: responseContent} could be the cause of the failure.

----OBS-----
Several errors are also happening in the transfer listing:
Stack error:
Captura de Tela 2023-09-08 às 12 17 02

Captura de Tela 2023-09-08 às 12 28 40

I would like to know how it can be resolved since the lib calls the stackbank api, would there be a way to return these behaviors to those who use, or integrate...

@informeai
Copy link
Author

These errors are happening when there is a high volume of requests for the starkbank api using the lib, would there be any limit of requests or requests?

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