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

Getting ERRO[1537] {} for the Error on the console #4182

Closed
hitesh770 opened this issue Jan 15, 2025 · 2 comments
Closed

Getting ERRO[1537] {} for the Error on the console #4182

hitesh770 opened this issue Jan 15, 2025 · 2 comments
Assignees

Comments

@hitesh770
Copy link

Brief summary

I have created a UI performance testing scripts did some error handling using try catch
try{}catch (err) {

    console.error('Error occurred during test execution:');
    // Log detailed error information
    if (err instanceof Error) {
        console.error(`Error Message: ${err.message}`);
        console.error(`Stack Trace: ${err.stack || 'Stack trace not available'}`);
    } else {
        console.error('Error is not an instance of Error. Full details:');
        console.error(err);
    }
    console.error(`Time: ${new Date().toISOString()}`);

}

i am getting below logs & getting empty strings

ERRO[1349] Error occurred during test execution: source=console
ERRO[1349] Error is not an instance of Error. Full details: source=console
ERRO[1349] {} source=console
ERRO[1349] Time: 2025-01-15T10:50:35.994Z source=console

k6 version

k6 v0.55.0 (commit/90bb9415d0, go1.23.3, linux/amd64)

OS

ubuntu 22.04 LTS

Docker version and image (if applicable)

No response

Steps to reproduce the problem

1- create a try catch as mentioned in the above statement.
2- use pom for the performance tests.
3- run your tests in multiple iterations

Expected behaviour

Scripts looks fine to me, Its shouldn't be throwing error randonly.

Actual behaviour

The script should works similar to it works for the first time. doesn't throw random error

@hitesh770
Copy link
Author

waitForSelector method is creating the issue using state as attached

@inancgumus
Copy link
Member

inancgumus commented Jan 15, 2025

Hi @hitesh770, could you ask this question on our community support forum: https://community.grafana.com/c/grafana-k6/k6-browser/79. We'd be happy to help you there. Thanks.

@inancgumus inancgumus closed this as not planned Won't fix, can't repro, duplicate, stale Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants