Skip to content

Commit 324a2cb

Browse files
committed
sourcemap updates
1 parent ab51509 commit 324a2cb

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,24 @@ 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 isn't valid JSON.
164+
* The source map doesn't follow the required schema.
165+
* A directory was uploaded instead of a file.
166+
167+
To fix this:
168+
169+
* Make sure the source map file contains valid JSON and follows the required schema.
170+
* Upload a single source map file, not a directory.
171+
</td>
172+
</tr>
155173
</tbody>
156174
</table>
157175

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

Lines changed: 4 additions & 2 deletions
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.
@@ -237,8 +236,11 @@ Below are some examples of using curl to publish, list, and delete source maps:
237236

238237
```bash
239238
curl -H "Api-Key: YOUR_NEW_RELIC_USER_API_KEY" \
240-
https://sourcemaps.service.newrelic.com/v2/applications/YOUR_NEW_RELIC_APP_ID/sourcemaps
239+
https://sourcemaps.service.newrelic.com/v2/applications/YOUR_NEW_RELIC_APP_ID/sourcemaps?limit=100
241240
```
241+
The default `limit` is set to `100`. You can specify a different limit by updating the `?limit={NEW-LIMIT}` to the end of the URL. You can fetch upto `500` source maps at a time.
242+
243+
242244
</Collapser>
243245

244246
<Collapser

0 commit comments

Comments
 (0)