sorenkrabbe / Chrome-Salesforce-inspector

Chrome extension to add a metadata layout on top of the standard Salesforce UI to improve the productivity and joy of Salesforce configuration, development, and integration.
328 stars 124 forks source link

Using "Explore API" fails on Bulk API 2.0 due to added cache parameter #243

Open Cisor opened 1 year ago

Cisor commented 1 year ago

sfConn.rest("/services/data/v57.0/jobs/query/"+ '7505r000006ESsbAAG');

throws: inspector.js:75 Uncaught (in promise) SalesforceRestError: BULK_API_ERROR: Cannot specify query parameters on this resource at Object.rest (inspector.js:75:17)

due to the cache parameter value added in: addon/inspector.js defines a + "cache=" + Math.random(); which is sent along with the request.

Using Chrome's Copy as Curl function and removing the cache param from the URL works without issue

The following also fail with the same error: POST - /services/data/v57.0/jobs/query GET - /services/data/v57.0/jobs/7505r000006ESsbAAG/results