You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've searched existing issues and found nothing related to my issue.
Describe the bug
When global variable is set from Post Response scripts where value is a number, value is set to Global variables but can't be updated by the same script.
Value also can't be deleted: ValidationError: variables[0].value must be a stringtype, but the final value was:1.
ValidationError: variables[0].value must be a `string` type, but the final value was: `1`.
at Object.y [as createError] (807.18085531.js:140:622700)
at Object.test (807.18085531.js:143:2994)
at t (807.18085531.js:140:622891)
at R (807.18085531.js:140:620743)
at ea._validate (807.18085531.js:143:601)
at ea.validate (807.18085531.js:143:840)
at 807.18085531.js:143:14572
at R (807.18085531.js:140:620743)
at 807.18085531.js:143:14411
at 807.18085531.js:140:620538
The text was updated successfully, but these errors were encountered:
igorskrasjukovsif
changed the title
Global variable can be set as number but nat't be modufied/used/deleted
Global variable can be set as number but can't be modified/deleted
Jan 22, 2025
I have checked the following:
Describe the bug
When global variable is set from Post Response scripts where value is a number, value is set to Global variables but can't be updated by the same script.
Value also can't be deleted:
ValidationError: variables[0].value must be a
stringtype, but the final value was:
1.
.bru file to reproduce the bug
meta {
name: int issue
type: http
seq: 2
}
get {
url: https://api.sampleapis.com/countries/countries
body: none
auth: none
}
script:post-response {
const response = res.getBody();
bru.setGlobalEnvVar('id', response[0].id);
}
Screenshots/Live demo link
The text was updated successfully, but these errors were encountered: