Burp Suite User Forum

Create new post

Error while sending request via Montoya API

Jan | Last updated: Mar 02, 2023 01:06AM UTC

Hi there, I am trying to send a request with the method sendRequest(); String body = "GET /vdp/helloworld HTTP/1.1\n" + "Host: sandbox.api.visa.com\n" + "Authorization: Basic test=\n\n"; burp.api.montoya.http.message.requests.HttpRequest httpRequest = burp.api.montoya.http.message.requests.HttpRequest.httpRequest(body); VisaApiExtender.http.sendRequest(httpRequest); And I am getting error: java.lang.RuntimeException: java.lang.NullPointerException: Cannot invoke "burp.vvf.hm()" because "<parameter1>" is null at burp.glb.sendRequest(Unknown Source) at burp.glb.sendRequest(Unknown Source) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:578) at burp.jhw.invoke(Unknown Source) at jdk.proxy2/jdk.proxy2.$Proxy54.sendRequest(Unknown Source) at burp.j5m.sendRequest(Unknown Source) at com.visa.developer.ApiClient$2.run(ApiClient.java:952) at java.base/java.lang.Thread.run(Thread.java:1589) Caused by: java.lang.NullPointerException: Cannot invoke "burp.vvf.hm()" because "<parameter1>" is null at burp.ms5.V(Unknown Source) at burp.dt_.t(Unknown Source) at burp.vxj.t(Unknown Source) at burp.vs8.t(Unknown Source) at burp.j1i.t(Unknown Source) at burp.n_u.f(Unknown Source) at burp.b1.F(Unknown Source) at burp.diq.n(Unknown Source) at burp.czg.e(Unknown Source) at burp.czg.P(Unknown Source) What can be a problem? Thank you

Hannah, PortSwigger Agent | Last updated: Mar 02, 2023 03:34PM UTC

Hi Are you providing the request with an HttpService? If you include an HttpService with the request, do you still receive this error?

You must be an existing, logged-in customer to reply to a thread. Please email us for additional support.