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

First seen: 3 days ago · Last seen: about 19 hours ago
Occurrences: 367
Resolved: No

## Info
- Message: Message history index out of range (endpoint messages)
- When: about 19 hours ago
- Occurred: 2025-11-15 16:46:57 UTC
- Occurred Local: 2025-11-15 16:46:57 (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 (endpoint 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: 04:46:57.295 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 04:46:26.582 PM, Cat: console, Level: log, Msg: Sent error: Variant: User lacks permission to send message in room '42', Type: -
### Data
```json
{"arguments":["Sent error: Variant: User lacks permission to send message in room '42'"],"logger":"console"}
```
- Time: 04:46:26.579 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: User lacks permission to send message in room '42', Type: -
- Time: 04:46:26.578 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 04:46:25.989 PM, Cat: console, Level: log, Msg: Sent error: Invalid message format 'int', Type: -
### Data
```json
{"arguments":["Sent error: Invalid message format 'int'"],"logger":"console"}
```
- Time: 04:46:25.986 PM, Cat: sentry.event, Level: error, Msg: Error: Invalid message format 'int', Type: -
- Time: 04:46:25.984 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 04:46:24.838 PM, Cat: console, Level: log, Msg: Sent error: Variant: Missing '588' prop in Message component, Type: -
### Data
```json
{"arguments":["Sent error: Variant: Missing '588' prop in Message component"],"logger":"console"}
```
- Time: 04:46:24.835 PM, Cat: sentry.event, Level: error, Msg: TypeError: Variant: Missing '588' prop in Message component, Type: -
- Time: 04:46:24.834 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 04:46:23.292 PM, Cat: console, Level: log, Msg: Sent error: API connection timed out during fetch 'content', Type: -
### Data
```json
{"arguments":["Sent error: API connection timed out during fetch 'content'"],"logger":"console"}
```
- Time: 04:46:23.289 PM, Cat: sentry.event, Level: error, Msg: Error: API connection timed out during fetch 'content', Type: -
- Time: 04:46:23.286 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 04:46:22.484 PM, Cat: console, Level: log, Msg: Sent error: API connection timed out during fetch 'endpoint', Type: -
### Data
```json
{"arguments":["Sent error: API connection timed out during fetch 'endpoint'"],"logger":"console"}
```
- Time: 04:46:22.482 PM, Cat: sentry.event, Level: error, Msg: Error: API connection timed out during fetch 'endpoint', Type: -
- Time: 04:46:22.480 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 04:46:20.898 PM, Cat: console, Level: log, Msg: Sent error: User lacks permission to send message in room '39', Type: -
### Data
```json
{"arguments":["Sent error: User lacks permission to send message in room '39'"],"logger":"console"}
```
- Time: 04:46:20.894 PM, Cat: sentry.event, Level: error, Msg: Error: User lacks permission to send message in room '39', Type: -
- Time: 04:46:20.891 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 04:46:19.048 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: 04:46:19.045 PM, Cat: sentry.event, Level: error, Msg: TypeError: Variant: Expected string for username, got endpoint, Type: -
- Time: 04:46:19.042 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 04:45:47.309 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: 04:45:47.306 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 04:45:47.306 PM, Cat: sentry.event, Level: error, Msg: RangeError: Message history index out of range (content messages), Type: -
- Time: 04:45:46.013 PM, Cat: console, Level: log, Msg: Sent error: Variant: User lacks permission to send message in room 'int', Type: -
### Data
```json
{"arguments":["Sent error: Variant: User lacks permission to send message in room 'int'"],"logger":"console"}
```
- Time: 04:45:46.006 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: User lacks permission to send message in room 'int', Type: -
- Time: 04:45:46.003 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 04:41:37.207 PM, Cat: console, Level: log, Msg: Sent error: Variant: Expected string for username, got 923, Type: -
### Data
```json
{"arguments":["Sent error: Variant: Expected string for username, got 923"],"logger":"console"}
```
- Time: 04:41:37.200 PM, Cat: sentry.event, Level: error, Msg: TypeError: Variant: Expected string for username, got 923, Type: -
- Time: 04:41:37.194 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 03:55:51.323 PM, Cat: console, Level: log, Msg: Sent error: Message not found with ID content, Type: -
### Data
```json
{"arguments":["Sent error: Message not found with ID content"],"logger":"console"}
```
- Time: 03:55:51.315 PM, Cat: sentry.event, Level: error, Msg: Error: Message not found with ID content, Type: -
- Time: 03:55:51.312 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 03:54:56.411 PM, Cat: console, Level: log, Msg: Sent error: API connection timed out during fetch '45', Type: -
### Data
```json
{"arguments":["Sent error: API connection timed out during fetch '45'"],"logger":"console"}
```
- Time: 03:54:56.407 PM, Cat: sentry.event, Level: error, Msg: Error: API connection timed out during fetch '45', Type: -
- Time: 03:54:56.405 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 03:54:55.101 PM, Cat: console, Level: log, Msg: Sent error: Variant: Invalid message format '758', Type: -
### Data
```json
{"arguments":["Sent error: Variant: Invalid message format '758'"],"logger":"console"}
```
- Time: 03:54:55.092 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: Invalid message format '758', Type: -
- Time: 03:54:55.085 PM, Cat: -, Level: info, Msg: Message sent, Type: -
- Time: 03:53:39.177 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: 03:53:39.171 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: User lacks permission to send message in room 'endpoint', Type: -
- Time: 03:53:39.168 PM, Cat: -, Level: info, Msg: Message sent, Type: -
- Time: 03:52:51.967 PM, Cat: console, Level: log, Msg: Sent error: Variant: Message history index out of range (320 messages), Type: -
### Data
```json
{"arguments":["Sent error: Variant: Message history index out of range (320 messages)"],"logger":"console"}
```
- Time: 03:52:51.959 PM, Cat: sentry.event, Level: error, Msg: RangeError: Variant: Message history index out of range (320 messages), Type: -
- Time: 03:52:51.951 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 03:52:16.795 PM, Cat: console, Level: log, Msg: Sent error: Variant: User lacks permission to send message in room '45', Type: -
### Data
```json
{"arguments":["Sent error: Variant: User lacks permission to send message in room '45'"],"logger":"console"}
```
- Time: 03:52:16.792 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: User lacks permission to send message in room '45', Type: -
- Time: 03:52:16.789 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 03:51:42.987 PM, Cat: console, Level: log, Msg: Sent error: Variant: Message history index out of range (timestamp messages), Type: -
### Data
```json
{"arguments":["Sent error: Variant: Message history index out of range (timestamp messages)"],"logger":"console"}
```
- Time: 03:51:42.983 PM, Cat: sentry.event, Level: error, Msg: RangeError: Variant: Message history index out of range (timestamp messages), Type: -
- Time: 03:51:42.982 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 03:51:41.618 PM, Cat: console, Level: log, Msg: Sent error: Variant: Missing 'int' prop in Message component, Type: -
### Data
```json
{"arguments":["Sent error: Variant: Missing 'int' prop in Message component"],"logger":"console"}
```
- Time: 03:51:41.614 PM, Cat: sentry.event, Level: error, Msg: TypeError: Variant: Missing 'int' prop in Message component, Type: -
- Time: 03:51:41.611 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 03:51:40.933 PM, Cat: console, Level: log, Msg: Sent error: Variant: Invalid message format '8', Type: -
### Data
```json
{"arguments":["Sent error: Variant: Invalid message format '8'"],"logger":"console"}
```
- Time: 03:51:40.927 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: Invalid message format '8', Type: -
- Time: 03:51:40.926 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 03:51:40.424 PM, Cat: console, Level: log, Msg: Sent error: Variant: Message history index out of range (content messages), Type: -
### Data
```json
{"arguments":["Sent error: Variant: Message history index out of range (content messages)"],"logger":"console"}
```
- Time: 03:51:40.417 PM, Cat: sentry.event, Level: error, Msg: RangeError: Variant: Message history index out of range (content messages), Type: -
- Time: 03:51:40.415 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 03:51:39.676 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: 03:51:39.657 PM, Cat: sentry.event, Level: error, Msg: TypeError: Variant: Expected string for username, got int, Type: -
- Time: 03:51:39.655 PM, Cat: -, Level: info, Msg: Message sent, Type: -
- Time: 03:51:08.184 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: 03:51:08.183 PM, Cat: sentry.event, Level: error, Msg: RangeError: Message history index out of range (int messages), Type: -
- Time: 03:51:08.181 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 03:51:06.872 PM, Cat: console, Level: log, Msg: Sent error: API connection timed out during fetch 'int', Type: -
### Data
```json
{"arguments":["Sent error: API connection timed out during fetch 'int'"],"logger":"console"}
```
- Time: 03:51:06.871 PM, Cat: sentry.event, Level: error, Msg: Error: API connection timed out during fetch 'int', Type: -
- Time: 03:51:06.871 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 03:51:05.154 PM, Cat: console, Level: log, Msg: Sent error: Variant: API connection timed out during fetch 'endpoint', Type: -
### Data
```json
{"arguments":["Sent error: Variant: API connection timed out during fetch 'endpoint'"],"logger":"console"}
```
- Time: 03:51:05.153 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: API connection timed out during fetch 'endpoint', Type: -
- Time: 03:51:05.151 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 03:51:03.947 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: 03:51:03.944 PM, Cat: sentry.event, Level: error, Msg: TypeError: Variant: Expected string for username, got endpoint, Type: -
- Time: 03:51:03.943 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 03:51:02.911 PM, Cat: console, Level: log, Msg: Sent error: Message not found with ID content, Type: -
### Data
```json
{"arguments":["Sent error: Message not found with ID content"],"logger":"console"}
```
- Time: 03:51:02.904 PM, Cat: sentry.event, Level: error, Msg: Error: Message not found with ID content, Type: -
- Time: 03:51:02.900 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 03:50:19.536 PM, Cat: console, Level: log, Msg: Sent error: Variant: Message history index out of range (50 messages), Type: -
### Data
```json
{"arguments":["Sent error: Variant: Message history index out of range (50 messages)"],"logger":"console"}
```
- Time: 03:50:19.535 PM, Cat: sentry.event, Level: error, Msg: RangeError: Variant: Message history index out of range (50 messages), Type: -
- Time: 03:50:19.533 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 03:50:18.571 PM, Cat: console, Level: log, Msg: Sent error: Variant: Chat object has no property 'timestamp', Type: -
### Data
```json
{"arguments":["Sent error: Variant: Chat object has no property 'timestamp'"],"logger":"console"}
```
- Time: 03:50:18.569 PM, Cat: sentry.event, Level: error, Msg: ReferenceError: Variant: Chat object has no property 'timestamp', Type: -
- Time: 03:50:18.568 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 03:50:17.903 PM, Cat: console, Level: log, Msg: Sent error: Expected string for username, got content, Type: -
### Data
```json
{"arguments":["Sent error: Expected string for username, got content"],"logger":"console"}
```
- Time: 03:50:17.892 PM, Cat: sentry.event, Level: error, Msg: TypeError: Expected string for username, got content, Type: -
- Time: 03:50:17.890 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 03:50:16.355 PM, Cat: console, Level: log, Msg: Sent error: Invalid message format 'int', Type: -
### Data
```json
{"arguments":["Sent error: Invalid message format 'int'"],"logger":"console"}
```
- Time: 03:50:16.351 PM, Cat: sentry.event, Level: error, Msg: Error: Invalid message format 'int', Type: -
- Time: 03:50:16.351 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 03:49:37.668 PM, Cat: console, Level: log, Msg: Sent error: Message history index out of range (709 messages), Type: -
### Data
```json
{"arguments":["Sent error: Message history index out of range (709 messages)"],"logger":"console"}
```
- Time: 03:49:37.665 PM, Cat: sentry.event, Level: error, Msg: RangeError: Message history index out of range (709 messages), Type: -
- Time: 03:49:37.664 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 03:49:36.085 PM, Cat: console, Level: log, Msg: Sent error: Variant: Chat object has no property 'int', Type: -
### Data
```json
{"arguments":["Sent error: Variant: Chat object has no property 'int'"],"logger":"console"}
```
- Time: 03:49:36.082 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 03:49:36.082 PM, Cat: sentry.event, Level: error, Msg: ReferenceError: Variant: Chat object has no property 'int', Type: -
- Time: 03:49:34.355 PM, Cat: console, Level: log, Msg: Sent error: Message not found with ID 118, Type: -
### Data
```json
{"arguments":["Sent error: Message not found with ID 118"],"logger":"console"}
```
- Time: 03:49:34.352 PM, Cat: sentry.event, Level: error, Msg: Error: Message not found with ID 118, Type: -
- Time: 03:49:34.351 PM, Cat: -, Level: info, Msg: Fetched chat history, 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: 714
- Username: demo_user_64
- Email: demo@example.com

## Extras
- context: {"component" => "ChatHistory", "message_count" => 42}
- debug_info: {"key" => "value1"}
- request_method: POST
- url: /chat/rooms/80

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