-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
script PostResponse: res is not a function #481
Comments
@gmajcen Yup, I am able to reproduce the bug. Will get this fixed. Meanwhile, here is a workaround. const {get} = require('lodash');
const page = get(res.getBody(), 'page');
console.log('page', page) |
I created #579 to fix it. It works on my machine 😄 |
Hello, I have the same problem (v1.2.0). Any updates on this @helloanoop ? It seems somewhat misleading from a user's perspective because the documentation explicitly states that the feature works but it does not. Tell me if I can do anything to help 😄 Note: the workaround mentionned works fine |
The |
The fix doesn't work, I am still getting 'Error invoking remote method 'send-http-request': TypeError: res is not a function' on the latest Bruno version. |
@anusreesubash Please work with @sanjai0py and prioritise reviewing the PR #579 The |
Any workarounds if res is not found at all? Or if not, anyone knows a version where this still worked? |
Our team is working on this. |
Hi Yes, the workaround worked. I might have been doing something wrong, as res was recognized sometimes, and other times it wasn't. Bumping this because I'm a newbie with Bruno and it took me a few hours to suspect it might have been a bug, and 5+ different keyword searches in Google to find this bug, which is 1y old now and apparently has a tentative bugfix waiting for PR review for 1y as well - thought it might have been forgotten :) I'll use the workaround happily! |
Replying to my previous comment: I found out what I was doing wrong. Turns out that the workaround doesn't work in Safe Mode -- only in Developer Mode was I able to make it work. |
tried to save some ids to var in Post Response under scripts:
const ids = res('features.id')
the same thing works with Vars.
The text was updated successfully, but these errors were encountered: