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

ReferenceError: URI is not defined #59

Closed
3wweiweiwu opened this issue Oct 27, 2020 · 1 comment
Closed

ReferenceError: URI is not defined #59

3wweiweiwu opened this issue Oct 27, 2020 · 1 comment
Assignees

Comments

@3wweiweiwu
Copy link

Hello,

I try to use har-to-k6 to create a javascript. One of the code looks like this:

address = new URI(
  "https://azqamtell06/LoadReturn.htm"
);
address
  .addQuery("t", `${vars["VMName_25_Token"]}`)
  .addQuery("g", `${vars["VMName_25_GUID"]}`)
  .addQuery("pg", `${vars["VMName_25_PublicGUID"]}`)
  .addQuery("stoken", `${vars["VMName_25_SessionToken"]}`)

When I run the code, it gives following error:

ERRO[0063] ReferenceError: URI is not defined
at file:///C:/Users/776ec4fd-12f6-4f41-ae01-89ea8b1efd82.js:895:19(2431)
at github.com/loadimpact/k6/js/common.Bind.func1 (native)s
at main (file:///C:/Users/776ec4fd-12f6-4f41-ae01-89ea8b1efd82.js:28:17(17)) executor=per-vu-iterations scenario=default source=stacktrace

@legander
Copy link
Collaborator

legander commented Nov 2, 2020

Thank you for reporting this issue, there is a PR that addresses this issue #60

@legander legander self-assigned this Nov 3, 2020
@legander legander closed this as completed Dec 7, 2020
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