# RangeError
Variant: Message history index out of range (endpoint messages)

First seen: 3 days ago · Last seen: about 6 hours ago
Occurrences: 396
Resolved: No

## Info
- Message: Message history index out of range (timestamp messages)
- When: about 6 hours ago
- Occurred: 2025-11-16 13:25:18 UTC
- Occurred Local: 2025-11-16 13:25:18 (Etc/UTC)
- Handled: Yes
- Severity: error
- Environment: production
- Platform: javascript
- Project: Chat Frontend
- Release Version: chat_frontend-v1.0
- Sourcemap Applied: No

## Backtrace
### Main
- Type: RangeError
- Value: Message history index out of range (timestamp messages)
- Module: -

1. http://localhost:8080/static/react-test-bundle.min.js, line 467:7096 in `o` (in_app)
2. http://localhost:8080/static/react-test-bundle.min.js, line 467:7138 in `J4` (in_app)
3. http://localhost:8080/static/react-test-bundle.min.js, line 467:8067 in `?` (in_app)
4. http://localhost:8080/static/react-test-bundle.min.js, line 14:11199 in `pg.withScope` (in_app)
5. http://localhost:8080/static/react-test-bundle.min.js, line 14:10646 in `Object._A [as withScope]` (in_app)
6. http://localhost:8080/static/react-test-bundle.min.js, line 14:10292 in `Ge` (in_app)
7. http://localhost:8080/static/react-test-bundle.min.js, line 467:7383 in `yR` (in_app)
8. http://localhost:8080/static/react-test-bundle.min.js, line 26:5442 in `r` (in_app)

## Breadcrumbs
- Time: 01:25:18.885 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 01:23:23.894 PM, Cat: console, Level: log, Msg: Sent error: Variant: Missing 'endpoint' prop in Message component, Type: -
### Data
```json
{"arguments":["Sent error: Variant: Missing 'endpoint' prop in Message component"],"logger":"console"}
```
- Time: 01:23:23.891 PM, Cat: sentry.event, Level: error, Msg: TypeError: Variant: Missing 'endpoint' prop in Message component, Type: -
- Time: 01:23:23.890 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 01:23:22.470 PM, Cat: console, Level: log, Msg: Sent error: Variant: Expected string for username, got int, Type: -
### Data
```json
{"arguments":["Sent error: Variant: Expected string for username, got int"],"logger":"console"}
```
- Time: 01:23:22.469 PM, Cat: sentry.event, Level: error, Msg: TypeError: Variant: Expected string for username, got int, Type: -
- Time: 01:23:22.467 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 01:23:21.686 PM, Cat: console, Level: log, Msg: Sent error: Expected string for username, got 29, Type: -
### Data
```json
{"arguments":["Sent error: Expected string for username, got 29"],"logger":"console"}
```
- Time: 01:23:21.683 PM, Cat: sentry.event, Level: error, Msg: TypeError: Expected string for username, got 29, Type: -
- Time: 01:23:21.681 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 01:22:49.677 PM, Cat: console, Level: log, Msg: Sent error: Variant: Expected string for username, got endpoint, Type: -
### Data
```json
{"arguments":["Sent error: Variant: Expected string for username, got endpoint"],"logger":"console"}
```
- Time: 01:22:49.676 PM, Cat: sentry.event, Level: error, Msg: TypeError: Variant: Expected string for username, got endpoint, Type: -
- Time: 01:22:49.674 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 01:22:48.066 PM, Cat: console, Level: log, Msg: Sent error: Variant: Expected string for username, got 684, Type: -
### Data
```json
{"arguments":["Sent error: Variant: Expected string for username, got 684"],"logger":"console"}
```
- Time: 01:22:48.063 PM, Cat: sentry.event, Level: error, Msg: TypeError: Variant: Expected string for username, got 684, Type: -
- Time: 01:22:48.062 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 01:22:46.341 PM, Cat: console, Level: log, Msg: Sent error: Variant: User lacks permission to send message in room 'content', Type: -
### Data
```json
{"arguments":["Sent error: Variant: User lacks permission to send message in room 'content'"],"logger":"console"}
```
- Time: 01:22:46.338 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: User lacks permission to send message in room 'content', Type: -
- Time: 01:22:46.338 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 01:22:45.670 PM, Cat: console, Level: log, Msg: Sent error: Message not found with ID 347, Type: -
### Data
```json
{"arguments":["Sent error: Message not found with ID 347"],"logger":"console"}
```
- Time: 01:22:45.667 PM, Cat: sentry.event, Level: error, Msg: Error: Message not found with ID 347, Type: -
- Time: 01:22:45.665 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 01:22:14.201 PM, Cat: console, Level: log, Msg: Sent error: Variant: Message not found with ID content, Type: -
### Data
```json
{"arguments":["Sent error: Variant: Message not found with ID content"],"logger":"console"}
```
- Time: 01:22:14.200 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: Message not found with ID content, Type: -
- Time: 01:22:14.198 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 01:22:13.361 PM, Cat: console, Level: log, Msg: Sent error: Variant: User lacks permission to send message in room 'endpoint', Type: -
### Data
```json
{"arguments":["Sent error: Variant: User lacks permission to send message in room 'endpoint'"],"logger":"console"}
```
- Time: 01:22:13.358 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: User lacks permission to send message in room 'endpoint', Type: -
- Time: 01:22:13.358 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 01:22:11.359 PM, Cat: console, Level: log, Msg: Sent error: Message history index out of range (int messages), Type: -
### Data
```json
{"arguments":["Sent error: Message history index out of range (int messages)"],"logger":"console"}
```
- Time: 01:22:11.358 PM, Cat: sentry.event, Level: error, Msg: RangeError: Message history index out of range (int messages), Type: -
- Time: 01:22:11.357 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 01:22:09.525 PM, Cat: console, Level: log, Msg: Sent error: Missing '476' prop in Message component, Type: -
### Data
```json
{"arguments":["Sent error: Missing '476' prop in Message component"],"logger":"console"}
```
- Time: 01:22:09.523 PM, Cat: sentry.event, Level: error, Msg: TypeError: Missing '476' prop in Message component, Type: -
- Time: 01:22:09.522 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 01:22:07.783 PM, Cat: console, Level: log, Msg: Sent error: Variant: User lacks permission to send message in room 'endpoint', Type: -
### Data
```json
{"arguments":["Sent error: Variant: User lacks permission to send message in room 'endpoint'"],"logger":"console"}
```
- Time: 01:22:07.780 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: User lacks permission to send message in room 'endpoint', Type: -
- Time: 01:22:07.779 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 01:22:06.503 PM, Cat: console, Level: log, Msg: Sent error: Variant: Message not found with ID int, Type: -
### Data
```json
{"arguments":["Sent error: Variant: Message not found with ID int"],"logger":"console"}
```
- Time: 01:22:06.500 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: Message not found with ID int, Type: -
- Time: 01:22:06.500 PM, Cat: -, Level: info, Msg: Message sent, Type: -
- Time: 01:22:04.614 PM, Cat: console, Level: log, Msg: Sent error: Message history index out of range (content messages), Type: -
### Data
```json
{"arguments":["Sent error: Message history index out of range (content messages)"],"logger":"console"}
```
- Time: 01:22:04.611 PM, Cat: sentry.event, Level: error, Msg: RangeError: Message history index out of range (content messages), Type: -
- Time: 01:22:04.611 PM, Cat: -, Level: info, Msg: Message sent, Type: -
- Time: 01:22:02.778 PM, Cat: console, Level: log, Msg: Sent error: Variant: Missing 'endpoint' prop in Message component, Type: -
### Data
```json
{"arguments":["Sent error: Variant: Missing 'endpoint' prop in Message component"],"logger":"console"}
```
- Time: 01:22:02.773 PM, Cat: sentry.event, Level: error, Msg: TypeError: Variant: Missing 'endpoint' prop in Message component, Type: -
- Time: 01:22:02.772 PM, Cat: -, Level: info, Msg: Message sent, Type: -
- Time: 01:22:01.095 PM, Cat: console, Level: log, Msg: Sent error: Variant: User lacks permission to send message in room 'content', Type: -
### Data
```json
{"arguments":["Sent error: Variant: User lacks permission to send message in room 'content'"],"logger":"console"}
```
- Time: 01:22:01.092 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: User lacks permission to send message in room 'content', Type: -
- Time: 01:22:01.086 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 01:22:00.038 PM, Cat: console, Level: log, Msg: Sent error: Message not found with ID int, Type: -
### Data
```json
{"arguments":["Sent error: Message not found with ID int"],"logger":"console"}
```
- Time: 01:22:00.032 PM, Cat: sentry.event, Level: error, Msg: Error: Message not found with ID int, Type: -
- Time: 01:22:00.028 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 01:19:48.743 PM, Cat: console, Level: log, Msg: Sent error: User lacks permission to send message in room 'endpoint', Type: -
### Data
```json
{"arguments":["Sent error: User lacks permission to send message in room 'endpoint'"],"logger":"console"}
```
- Time: 01:19:48.742 PM, Cat: sentry.event, Level: error, Msg: Error: User lacks permission to send message in room 'endpoint', Type: -
- Time: 01:19:48.740 PM, Cat: -, Level: info, Msg: Message sent, Type: -
- Time: 01:19:47.375 PM, Cat: console, Level: log, Msg: Sent error: Missing '38' prop in Message component, Type: -
### Data
```json
{"arguments":["Sent error: Missing '38' prop in Message component"],"logger":"console"}
```
- Time: 01:19:47.375 PM, Cat: sentry.event, Level: error, Msg: TypeError: Missing '38' prop in Message component, Type: -
- Time: 01:19:47.374 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 01:19:46.040 PM, Cat: console, Level: log, Msg: Sent error: User lacks permission to send message in room 'content', Type: -
### Data
```json
{"arguments":["Sent error: User lacks permission to send message in room 'content'"],"logger":"console"}
```
- Time: 01:19:46.039 PM, Cat: sentry.event, Level: error, Msg: Error: User lacks permission to send message in room 'content', Type: -
- Time: 01:19:46.038 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 01:19:44.698 PM, Cat: console, Level: log, Msg: Sent error: API connection timed out during fetch '28', Type: -
### Data
```json
{"arguments":["Sent error: API connection timed out during fetch '28'"],"logger":"console"}
```
- Time: 01:19:44.694 PM, Cat: sentry.event, Level: error, Msg: Error: API connection timed out during fetch '28', Type: -
- Time: 01:19:44.691 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 01:19:43.875 PM, Cat: console, Level: log, Msg: Sent error: Missing 'int' prop in Message component, Type: -
### Data
```json
{"arguments":["Sent error: Missing 'int' prop in Message component"],"logger":"console"}
```
- Time: 01:19:43.868 PM, Cat: sentry.event, Level: error, Msg: TypeError: Missing 'int' prop in Message component, Type: -
- Time: 01:19:43.865 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 01:14:34.036 PM, Cat: console, Level: log, Msg: Sent error: Variant: Invalid message format '48', Type: -
### Data
```json
{"arguments":["Sent error: Variant: Invalid message format '48'"],"logger":"console"}
```
- Time: 01:14:34.029 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: Invalid message format '48', Type: -
- Time: 01:14:34.023 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 01:12:33.746 PM, Cat: console, Level: log, Msg: Sent error: Variant: Message not found with ID timestamp, Type: -
### Data
```json
{"arguments":["Sent error: Variant: Message not found with ID timestamp"],"logger":"console"}
```
- Time: 01:12:33.736 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: Message not found with ID timestamp, Type: -
- Time: 01:12:33.729 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 12:20:51.440 PM, Cat: console, Level: log, Msg: Sent error: Invalid message format '17', Type: -
### Data
```json
{"arguments":["Sent error: Invalid message format '17'"],"logger":"console"}
```
- Time: 12:20:51.438 PM, Cat: sentry.event, Level: error, Msg: Error: Invalid message format '17', Type: -
- Time: 12:20:51.437 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 12:20:49.598 PM, Cat: console, Level: log, Msg: Sent error: Expected string for username, got 356, Type: -
### Data
```json
{"arguments":["Sent error: Expected string for username, got 356"],"logger":"console"}
```
- Time: 12:20:49.592 PM, Cat: sentry.event, Level: error, Msg: TypeError: Expected string for username, got 356, Type: -
- Time: 12:20:49.591 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 12:20:18.440 PM, Cat: console, Level: log, Msg: Sent error: Variant: User lacks permission to send message in room '713', Type: -
### Data
```json
{"arguments":["Sent error: Variant: User lacks permission to send message in room '713'"],"logger":"console"}
```
- Time: 12:20:18.433 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: User lacks permission to send message in room '713', Type: -
- Time: 12:20:18.430 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 12:19:26.595 PM, Cat: console, Level: log, Msg: Sent error: Missing 'timestamp' prop in Message component, Type: -
### Data
```json
{"arguments":["Sent error: Missing 'timestamp' prop in Message component"],"logger":"console"}
```
- Time: 12:19:26.595 PM, Cat: sentry.event, Level: error, Msg: TypeError: Missing 'timestamp' prop in Message component, Type: -
- Time: 12:19:26.594 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 12:19:25.736 PM, Cat: console, Level: log, Msg: Sent error: Message not found with ID endpoint, Type: -
### Data
```json
{"arguments":["Sent error: Message not found with ID endpoint"],"logger":"console"}
```
- Time: 12:19:25.734 PM, Cat: sentry.event, Level: error, Msg: Error: Message not found with ID endpoint, Type: -
- Time: 12:19:25.733 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 12:18:53.957 PM, Cat: console, Level: log, Msg: Sent error: Variant: Expected string for username, got timestamp, Type: -
### Data
```json
{"arguments":["Sent error: Variant: Expected string for username, got timestamp"],"logger":"console"}
```
- Time: 12:18:53.956 PM, Cat: sentry.event, Level: error, Msg: TypeError: Variant: Expected string for username, got timestamp, Type: -
- Time: 12:18:53.954 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 12:18:53.385 PM, Cat: console, Level: log, Msg: Sent error: Expected string for username, got timestamp, Type: -
### Data
```json
{"arguments":["Sent error: Expected string for username, got timestamp"],"logger":"console"}
```
- Time: 12:18:53.384 PM, Cat: sentry.event, Level: error, Msg: TypeError: Expected string for username, got timestamp, Type: -
- Time: 12:18:53.382 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 12:18:51.493 PM, Cat: console, Level: log, Msg: Sent error: Variant: Invalid message format '199', Type: -
### Data
```json
{"arguments":["Sent error: Variant: Invalid message format '199'"],"logger":"console"}
```
- Time: 12:18:51.493 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: Invalid message format '199', Type: -
- Time: 12:18:51.492 PM, Cat: -, Level: info, Msg: Message sent, Type: -
- Time: 12:18:50.716 PM, Cat: console, Level: log, Msg: Sent error: Message not found with ID int, Type: -
### Data
```json
{"arguments":["Sent error: Message not found with ID int"],"logger":"console"}
```
- Time: 12:18:50.713 PM, Cat: sentry.event, Level: error, Msg: Error: Message not found with ID int, Type: -
- Time: 12:18:50.713 PM, Cat: -, Level: info, Msg: User typing, Type: -

## Tags
- app: chat_frontend
- environment: test
- technology: react
- version: 8.0.0

## Contexts
### trace
```json
{"trace_id":"ec0cca94bbd94a46958d856a78515701","span_id":"9477e0004a443922"}
```

## HTTP Request
- URL: http://localhost:8080/test.html
### Headers
```json
{"User-Agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/142.0.0.0 Safari/537.36"}
```

## User
- ID: 670
- Username: demo_user_30
- Email: demo@example.com

## Extras
- context: {"component" => "ChatHistory", "message_count" => 42}
- debug_info: {"key" => "value2"}
- request_method: GET
- url: /chat/rooms/94

## SDK
- Name: sentry.javascript.react
- Version: 8.0.0
