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

First seen: 5 days ago · Last seen: 1 day ago
Occurrences: 560
Resolved: No

## Info
- Message: Variant: Message history index out of range (endpoint messages)
- When: 1 day ago
- Occurred: 2025-11-16 22:13:50 UTC
- Occurred Local: 2025-11-16 22:13:50 (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: Variant: Message history index out of range (endpoint messages)
- Module: -

1. http://localhost:8080/static/react-test-bundle.min.js, line 467:7110 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: 10:13:50.755 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 10:13:19.177 PM, Cat: console, Level: log, Msg: Sent error: Variant: Message history index out of range (38 messages), Type: -
### Data
```json
{"arguments":["Sent error: Variant: Message history index out of range (38 messages)"],"logger":"console"}
```
- Time: 10:13:19.174 PM, Cat: sentry.event, Level: error, Msg: RangeError: Variant: Message history index out of range (38 messages), Type: -
- Time: 10:13:19.173 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 10:13:17.928 PM, Cat: console, Level: log, Msg: Sent error: Missing 'endpoint' prop in Message component, Type: -
### Data
```json
{"arguments":["Sent error: Missing 'endpoint' prop in Message component"],"logger":"console"}
```
- Time: 10:13:17.927 PM, Cat: sentry.event, Level: error, Msg: TypeError: Missing 'endpoint' prop in Message component, Type: -
- Time: 10:13:17.926 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 10:13:16.854 PM, Cat: console, Level: log, Msg: Sent error: Expected string for username, got 78, Type: -
### Data
```json
{"arguments":["Sent error: Expected string for username, got 78"],"logger":"console"}
```
- Time: 10:13:16.851 PM, Cat: sentry.event, Level: error, Msg: TypeError: Expected string for username, got 78, Type: -
- Time: 10:13:16.848 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 10:13:15.634 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: 10:13:15.630 PM, Cat: sentry.event, Level: error, Msg: TypeError: Variant: Missing 'endpoint' prop in Message component, Type: -
- Time: 10:13:15.627 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 10:12:19.230 PM, Cat: console, Level: log, Msg: Sent error: Variant: Chat object has no property '579', Type: -
### Data
```json
{"arguments":["Sent error: Variant: Chat object has no property '579'"],"logger":"console"}
```
- Time: 10:12:19.226 PM, Cat: sentry.event, Level: error, Msg: ReferenceError: Variant: Chat object has no property '579', Type: -
- Time: 10:12:19.223 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 09:18:02.793 PM, Cat: console, Level: log, Msg: Sent error: Variant: API connection timed out during fetch '19', Type: -
### Data
```json
{"arguments":["Sent error: Variant: API connection timed out during fetch '19'"],"logger":"console"}
```
- Time: 09:18:02.788 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: API connection timed out during fetch '19', Type: -
- Time: 09:18:02.783 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 09:16:47.888 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: 09:16:47.884 PM, Cat: sentry.event, Level: error, Msg: RangeError: Message history index out of range (content messages), Type: -
- Time: 09:16:47.882 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 09:16:46.480 PM, Cat: console, Level: log, Msg: Sent error: Variant: Chat object has no property 'content', Type: -
### Data
```json
{"arguments":["Sent error: Variant: Chat object has no property 'content'"],"logger":"console"}
```
- Time: 09:16:46.477 PM, Cat: sentry.event, Level: error, Msg: ReferenceError: Variant: Chat object has no property 'content', Type: -
- Time: 09:16:46.476 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 09:16:45.081 PM, Cat: console, Level: log, Msg: Sent error: Expected string for username, got 576, Type: -
### Data
```json
{"arguments":["Sent error: Expected string for username, got 576"],"logger":"console"}
```
- Time: 09:16:45.078 PM, Cat: sentry.event, Level: error, Msg: TypeError: Expected string for username, got 576, Type: -
- Time: 09:16:45.076 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 09:16:44.556 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: 09:16:44.552 PM, Cat: sentry.event, Level: error, Msg: RangeError: Message history index out of range (content messages), Type: -
- Time: 09:16:44.551 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 09:16:43.970 PM, Cat: console, Level: log, Msg: Sent error: Variant: Missing '3' prop in Message component, Type: -
### Data
```json
{"arguments":["Sent error: Variant: Missing '3' prop in Message component"],"logger":"console"}
```
- Time: 09:16:43.964 PM, Cat: sentry.event, Level: error, Msg: TypeError: Variant: Missing '3' prop in Message component, Type: -
- Time: 09:16:43.961 PM, Cat: -, Level: info, Msg: Message sent, Type: -
- Time: 09:15:58.815 PM, Cat: console, Level: log, Msg: Sent error: Variant: Invalid message format '1', Type: -
### Data
```json
{"arguments":["Sent error: Variant: Invalid message format '1'"],"logger":"console"}
```
- Time: 09:15:58.813 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: Invalid message format '1', Type: -
- Time: 09:15:58.812 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 09:15:58.017 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: 09:15:58.013 PM, Cat: sentry.event, Level: error, Msg: Error: API connection timed out during fetch 'int', Type: -
- Time: 09:15:58.010 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 09:15:56.233 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: 09:15:56.232 PM, Cat: sentry.event, Level: error, Msg: RangeError: Variant: Message history index out of range (content messages), Type: -
- Time: 09:15:56.230 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 09:15:55.563 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: 09:15:55.562 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: Message not found with ID int, Type: -
- Time: 09:15:55.562 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 09:15:23.845 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: 09:15:23.844 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 09:15:23.844 PM, Cat: sentry.event, Level: error, Msg: Error: API connection timed out during fetch 'int', Type: -
- Time: 09:15:21.933 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: 09:15:21.930 PM, Cat: sentry.event, Level: error, Msg: Error: Message not found with ID endpoint, Type: -
- Time: 09:15:21.928 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 09:15:19.982 PM, Cat: console, Level: log, Msg: Sent error: Message history index out of range (endpoint messages), Type: -
### Data
```json
{"arguments":["Sent error: Message history index out of range (endpoint messages)"],"logger":"console"}
```
- Time: 09:15:19.971 PM, Cat: sentry.event, Level: error, Msg: RangeError: Message history index out of range (endpoint messages), Type: -
- Time: 09:15:19.970 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 09:15:18.732 PM, Cat: console, Level: log, Msg: Sent error: Variant: Chat object has no property 'endpoint', Type: -
### Data
```json
{"arguments":["Sent error: Variant: Chat object has no property 'endpoint'"],"logger":"console"}
```
- Time: 09:15:18.724 PM, Cat: sentry.event, Level: error, Msg: ReferenceError: Variant: Chat object has no property 'endpoint', Type: -
- Time: 09:15:18.720 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 09:14:47.710 PM, Cat: console, Level: log, Msg: Sent error: Chat object has no property '16', Type: -
### Data
```json
{"arguments":["Sent error: Chat object has no property '16'"],"logger":"console"}
```
- Time: 09:14:47.698 PM, Cat: sentry.event, Level: error, Msg: ReferenceError: Chat object has no property '16', Type: -
- Time: 09:14:47.688 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 09:13:32.108 PM, Cat: console, Level: log, Msg: Sent error: Variant: Chat object has no property 'content', Type: -
### Data
```json
{"arguments":["Sent error: Variant: Chat object has no property 'content'"],"logger":"console"}
```
- Time: 09:13:32.105 PM, Cat: sentry.event, Level: error, Msg: ReferenceError: Variant: Chat object has no property 'content', Type: -
- Time: 09:13:32.105 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 09:13:31.592 PM, Cat: console, Level: log, Msg: Sent error: Variant: Missing '392' prop in Message component, Type: -
### Data
```json
{"arguments":["Sent error: Variant: Missing '392' prop in Message component"],"logger":"console"}
```
- Time: 09:13:31.591 PM, Cat: sentry.event, Level: error, Msg: TypeError: Variant: Missing '392' prop in Message component, Type: -
- Time: 09:13:31.589 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 09:13:29.868 PM, Cat: console, Level: log, Msg: Sent error: Chat object has no property '377', Type: -
### Data
```json
{"arguments":["Sent error: Chat object has no property '377'"],"logger":"console"}
```
- Time: 09:13:29.865 PM, Cat: sentry.event, Level: error, Msg: ReferenceError: Chat object has no property '377', Type: -
- Time: 09:13:29.865 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 09:13:29.232 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: 09:13:29.230 PM, Cat: sentry.event, Level: error, Msg: RangeError: Message history index out of range (int messages), Type: -
- Time: 09:13:29.227 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 09:13:27.371 PM, Cat: console, Level: log, Msg: Sent error: Variant: Missing 'content' prop in Message component, Type: -
### Data
```json
{"arguments":["Sent error: Variant: Missing 'content' prop in Message component"],"logger":"console"}
```
- Time: 09:13:27.368 PM, Cat: sentry.event, Level: error, Msg: TypeError: Variant: Missing 'content' prop in Message component, Type: -
- Time: 09:13:27.368 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 09:13:25.753 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: 09:13:25.752 PM, Cat: sentry.event, Level: error, Msg: TypeError: Missing 'int' prop in Message component, Type: -
- Time: 09:13:25.750 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 09:13:24.694 PM, Cat: console, Level: log, Msg: Sent error: Variant: Chat object has no property '3', Type: -
### Data
```json
{"arguments":["Sent error: Variant: Chat object has no property '3'"],"logger":"console"}
```
- Time: 09:13:24.688 PM, Cat: sentry.event, Level: error, Msg: ReferenceError: Variant: Chat object has no property '3', Type: -
- Time: 09:13:24.684 PM, Cat: -, Level: info, Msg: Message sent, Type: -
- Time: 09:12:52.801 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: 09:12:52.799 PM, Cat: sentry.event, Level: error, Msg: Error: Message not found with ID int, Type: -
- Time: 09:12:52.796 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 09:12:51.240 PM, Cat: console, Level: log, Msg: Sent error: Variant: Missing '35' prop in Message component, Type: -
### Data
```json
{"arguments":["Sent error: Variant: Missing '35' prop in Message component"],"logger":"console"}
```
- Time: 09:12:51.239 PM, Cat: sentry.event, Level: error, Msg: TypeError: Variant: Missing '35' prop in Message component, Type: -
- Time: 09:12:51.237 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 09:12:50.585 PM, Cat: console, Level: log, Msg: Sent error: Variant: Missing '12' prop in Message component, Type: -
### Data
```json
{"arguments":["Sent error: Variant: Missing '12' prop in Message component"],"logger":"console"}
```
- Time: 09:12:50.581 PM, Cat: sentry.event, Level: error, Msg: TypeError: Variant: Missing '12' prop in Message component, Type: -
- Time: 09:12:50.578 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 09:12:49.223 PM, Cat: console, Level: log, Msg: Sent error: API connection timed out during fetch '9', Type: -
### Data
```json
{"arguments":["Sent error: API connection timed out during fetch '9'"],"logger":"console"}
```
- Time: 09:12:49.220 PM, Cat: sentry.event, Level: error, Msg: Error: API connection timed out during fetch '9', Type: -
- Time: 09:12:49.220 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 09:12:47.950 PM, Cat: console, Level: log, Msg: Sent error: Invalid message format '1', Type: -
### Data
```json
{"arguments":["Sent error: Invalid message format '1'"],"logger":"console"}
```
- Time: 09:12:47.947 PM, Cat: sentry.event, Level: error, Msg: Error: Invalid message format '1', Type: -
- Time: 09:12:47.947 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 09:12:47.273 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: 09:12:47.269 PM, Cat: sentry.event, Level: error, Msg: TypeError: Variant: Expected string for username, got int, Type: -
- Time: 09:12:47.266 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: 814
- Username: demo_user_67
- Email: demo@example.com

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

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