Skip to content

Commit 2f629aa

Browse files
Merge pull request #20766 from newrelic/nr-417020-sourcemap-apis
[chore]: Updating the Sourcemap API docs to revise limit
2 parents 9ad1038 + a7ff06e commit 2f629aa

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

src/content/docs/browser/browser-monitoring/browser-pro-features/upload-source-maps-un-minify-js-errors.mdx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,23 @@ If you have uploaded source maps to New Relic and still see minified stack trace
152152
If the `SourcesContent` component is not added, an error similar to `Whoops, that was the wrong file. Please try again.` will appear.
153153
</td>
154154
</tr>
155+
<tr>
156+
<td>
157+
400 error: `Invalid source map`
158+
</td>
159+
160+
<td>
161+
This error occurs when one of the following happens:
162+
163+
* The source map contains invalid JSON or doesn't follow the required schema.
164+
* A directory was uploaded instead of a file.
165+
166+
To fix this:
167+
168+
* Make sure the source map file contains valid JSON and follows the required schema.
169+
* Upload a single source map file, not a directory.
170+
</td>
171+
</tr>
155172
</tbody>
156173
</table>
157174

src/content/docs/browser/new-relic-browser/browser-pro-features/upload-source-maps-api.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ In order to upload source maps to browser via the API, you'll need:
5959
There is no limit to the overall number of source maps you can upload. However, the API is rate-limited per account:
6060

6161
* You can upload a maximum of 1000 source maps per minute.
62-
* You can upload a maximum of 15,000 source maps per day.
6362
* Only one source map can be uploaded or published per API request.
6463

6564
Source map files can be a maximum of 50Mb in size.
@@ -239,6 +238,9 @@ Below are some examples of using curl to publish, list, and delete source maps:
239238
curl -H "Api-Key: YOUR_NEW_RELIC_USER_API_KEY" \
240239
https://sourcemaps.service.newrelic.com/v2/applications/YOUR_NEW_RELIC_APP_ID/sourcemaps
241240
```
241+
By default, `20` source maps are retrieved. To retrieve a different number of source maps, append `?limit=<NEW-LIMIT>` to the end of the URL, where `<NEW-LIMIT>` is your desired limit. You can retrieve up to `500` source maps at a time.
242+
243+
242244
</Collapser>
243245

244246
<Collapser

0 commit comments

Comments
 (0)