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

First seen: 3 days ago · Last seen: 1 day ago
Occurrences: 367
Resolved: No

## Info
- Message: Message history index out of range (timestamp messages)
- When: 1 day ago
- Occurred: 2025-11-14 19:25:14 UTC
- Occurred Local: 2025-11-14 19:25:14 (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)

## Breadcrumbs
- Time: 07:25:14.426 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 07:25:13.707 PM, Cat: console, Level: log, Msg: Sent error: Missing '147' prop in Message component, Type: -
### Data
```json
{"arguments":["Sent error: Missing '147' prop in Message component"],"logger":"console"}
```
- Time: 07:25:13.703 PM, Cat: sentry.event, Level: error, Msg: TypeError: Missing '147' prop in Message component, Type: -
- Time: 07:25:13.701 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 07:25:11.841 PM, Cat: console, Level: log, Msg: Sent error: Variant: API connection timed out during fetch 'timestamp', Type: -
### Data
```json
{"arguments":["Sent error: Variant: API connection timed out during fetch 'timestamp'"],"logger":"console"}
```
- Time: 07:25:11.836 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: API connection timed out during fetch 'timestamp', Type: -
- Time: 07:25:11.835 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 07:24:40.470 PM, Cat: console, Level: log, Msg: Sent error: Missing 'content' prop in Message component, Type: -
### Data
```json
{"arguments":["Sent error: Missing 'content' prop in Message component"],"logger":"console"}
```
- Time: 07:24:40.469 PM, Cat: sentry.event, Level: error, Msg: TypeError: Missing 'content' prop in Message component, Type: -
- Time: 07:24:40.467 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 07:24:38.572 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: 07:24:38.565 PM, Cat: sentry.event, Level: error, Msg: TypeError: Variant: Missing 'endpoint' prop in Message component, Type: -
- Time: 07:24:38.562 PM, Cat: -, Level: info, Msg: Message sent, Type: -
- Time: 07:23:53.805 PM, Cat: console, Level: log, Msg: Sent error: Variant: Invalid message format 'timestamp', Type: -
### Data
```json
{"arguments":["Sent error: Variant: Invalid message format 'timestamp'"],"logger":"console"}
```
- Time: 07:23:53.802 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: Invalid message format 'timestamp', Type: -
- Time: 07:23:53.801 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 07:23:22.108 PM, Cat: console, Level: log, Msg: Sent error: Chat object has no property '127', Type: -
### Data
```json
{"arguments":["Sent error: Chat object has no property '127'"],"logger":"console"}
```
- Time: 07:23:22.105 PM, Cat: sentry.event, Level: error, Msg: ReferenceError: Chat object has no property '127', Type: -
- Time: 07:23:22.105 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 07:23:21.492 PM, Cat: console, Level: log, Msg: Sent error: Variant: Message history index out of range (13 messages), Type: -
### Data
```json
{"arguments":["Sent error: Variant: Message history index out of range (13 messages)"],"logger":"console"}
```
- Time: 07:23:21.490 PM, Cat: sentry.event, Level: error, Msg: RangeError: Variant: Message history index out of range (13 messages), Type: -
- Time: 07:23:21.489 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 07:23:20.482 PM, Cat: console, Level: log, Msg: Sent error: Variant: Invalid message format '44', Type: -
### Data
```json
{"arguments":["Sent error: Variant: Invalid message format '44'"],"logger":"console"}
```
- Time: 07:23:20.480 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: Invalid message format '44', Type: -
- Time: 07:23:20.479 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 07:23:18.591 PM, Cat: console, Level: log, Msg: Sent error: Variant: Message history index out of range (2 messages), Type: -
### Data
```json
{"arguments":["Sent error: Variant: Message history index out of range (2 messages)"],"logger":"console"}
```
- Time: 07:23:18.588 PM, Cat: sentry.event, Level: error, Msg: RangeError: Variant: Message history index out of range (2 messages), Type: -
- Time: 07:23:18.588 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 07:23:18.022 PM, Cat: console, Level: log, Msg: Sent error: Message not found with ID 28, Type: -
### Data
```json
{"arguments":["Sent error: Message not found with ID 28"],"logger":"console"}
```
- Time: 07:23:18.019 PM, Cat: sentry.event, Level: error, Msg: Error: Message not found with ID 28, Type: -
- Time: 07:23:18.019 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 07:23:16.055 PM, Cat: console, Level: log, Msg: Sent error: Variant: Message history index out of range (766 messages), Type: -
### Data
```json
{"arguments":["Sent error: Variant: Message history index out of range (766 messages)"],"logger":"console"}
```
- Time: 07:23:16.052 PM, Cat: sentry.event, Level: error, Msg: RangeError: Variant: Message history index out of range (766 messages), Type: -
- Time: 07:23:16.049 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 07:23:14.528 PM, Cat: console, Level: log, Msg: Sent error: Variant: Chat object has no property '350', Type: -
### Data
```json
{"arguments":["Sent error: Variant: Chat object has no property '350'"],"logger":"console"}
```
- Time: 07:23:14.525 PM, Cat: sentry.event, Level: error, Msg: ReferenceError: Variant: Chat object has no property '350', Type: -
- Time: 07:23:14.523 PM, Cat: -, Level: info, Msg: Message sent, Type: -
- Time: 07:23:13.463 PM, Cat: console, Level: log, Msg: Sent error: Chat object has no property '38', Type: -
### Data
```json
{"arguments":["Sent error: Chat object has no property '38'"],"logger":"console"}
```
- Time: 07:23:13.460 PM, Cat: sentry.event, Level: error, Msg: ReferenceError: Chat object has no property '38', Type: -
- Time: 07:23:13.457 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 07:23:12.036 PM, Cat: console, Level: log, Msg: Sent error: Invalid message format 'timestamp', Type: -
### Data
```json
{"arguments":["Sent error: Invalid message format 'timestamp'"],"logger":"console"}
```
- Time: 07:23:12.032 PM, Cat: sentry.event, Level: error, Msg: Error: Invalid message format 'timestamp', Type: -
- Time: 07:23:12.030 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 07:23:10.388 PM, Cat: console, Level: log, Msg: Sent error: Variant: Invalid message format 'endpoint', Type: -
### Data
```json
{"arguments":["Sent error: Variant: Invalid message format 'endpoint'"],"logger":"console"}
```
- Time: 07:23:10.380 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: Invalid message format 'endpoint', Type: -
- Time: 07:23:10.374 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 07:22:07.378 PM, Cat: console, Level: log, Msg: Sent error: Invalid message format '88', Type: -
### Data
```json
{"arguments":["Sent error: Invalid message format '88'"],"logger":"console"}
```
- Time: 07:22:07.375 PM, Cat: sentry.event, Level: error, Msg: Error: Invalid message format '88', Type: -
- Time: 07:22:07.372 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 07:22:05.828 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: 07:22:05.825 PM, Cat: sentry.event, Level: error, Msg: TypeError: Missing 'endpoint' prop in Message component, Type: -
- Time: 07:22:05.822 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 07:21:34.668 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: 07:21:34.665 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: User lacks permission to send message in room 'endpoint', Type: -
- Time: 07:21:34.664 PM, Cat: -, Level: info, Msg: Message sent, Type: -
- Time: 07:21:33.990 PM, Cat: console, Level: log, Msg: Sent error: Variant: Invalid message format '888', Type: -
### Data
```json
{"arguments":["Sent error: Variant: Invalid message format '888'"],"logger":"console"}
```
- Time: 07:21:33.986 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: Invalid message format '888', Type: -
- Time: 07:21:33.983 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 07:21:33.388 PM, Cat: console, Level: log, Msg: Sent error: Variant: Missing 'timestamp' prop in Message component, Type: -
### Data
```json
{"arguments":["Sent error: Variant: Missing 'timestamp' prop in Message component"],"logger":"console"}
```
- Time: 07:21:33.385 PM, Cat: sentry.event, Level: error, Msg: TypeError: Variant: Missing 'timestamp' prop in Message component, Type: -
- Time: 07:21:33.384 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 07:21:31.898 PM, Cat: console, Level: log, Msg: Sent error: Variant: Chat object has no property '818', Type: -
### Data
```json
{"arguments":["Sent error: Variant: Chat object has no property '818'"],"logger":"console"}
```
- Time: 07:21:31.895 PM, Cat: sentry.event, Level: error, Msg: ReferenceError: Variant: Chat object has no property '818', Type: -
- Time: 07:21:31.894 PM, Cat: -, Level: info, Msg: Message sent, Type: -
- Time: 07:21:29.993 PM, Cat: console, Level: log, Msg: Sent error: Message not found with ID timestamp, Type: -
### Data
```json
{"arguments":["Sent error: Message not found with ID timestamp"],"logger":"console"}
```
- Time: 07:21:29.990 PM, Cat: sentry.event, Level: error, Msg: Error: Message not found with ID timestamp, Type: -
- Time: 07:21:29.990 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 07:20:12.276 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: 07:20:12.273 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: API connection timed out during fetch 'endpoint', Type: -
- Time: 07:20:12.273 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 07:20:11.513 PM, Cat: console, Level: log, Msg: Sent error: Chat object has no property 'content', Type: -
### Data
```json
{"arguments":["Sent error: Chat object has no property 'content'"],"logger":"console"}
```
- Time: 07:20:11.510 PM, Cat: sentry.event, Level: error, Msg: ReferenceError: Chat object has no property 'content', Type: -
- Time: 07:20:11.509 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 07:20:10.207 PM, Cat: console, Level: log, Msg: Sent error: Chat object has no property 'endpoint', Type: -
### Data
```json
{"arguments":["Sent error: Chat object has no property 'endpoint'"],"logger":"console"}
```
- Time: 07:20:10.198 PM, Cat: sentry.event, Level: error, Msg: ReferenceError: Chat object has no property 'endpoint', Type: -
- Time: 07:20:10.194 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 07:17:52.006 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: 07:17:52.000 PM, Cat: sentry.event, Level: error, Msg: ReferenceError: Variant: Chat object has no property 'content', Type: -
- Time: 07:17:51.994 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 07:15:53.176 PM, Cat: console, Level: log, Msg: Sent error: API connection timed out during fetch '38', Type: -
### Data
```json
{"arguments":["Sent error: API connection timed out during fetch '38'"],"logger":"console"}
```
- Time: 07:15:53.171 PM, Cat: sentry.event, Level: error, Msg: Error: API connection timed out during fetch '38', Type: -
- Time: 07:15:53.167 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 06:30:08.796 PM, Cat: console, Level: log, Msg: Sent error: Missing '617' prop in Message component, Type: -
### Data
```json
{"arguments":["Sent error: Missing '617' prop in Message component"],"logger":"console"}
```
- Time: 06:30:08.789 PM, Cat: sentry.event, Level: error, Msg: TypeError: Missing '617' prop in Message component, Type: -
- Time: 06:30:08.786 PM, Cat: -, Level: info, Msg: Message sent, Type: -
- Time: 06:29:04.007 PM, Cat: console, Level: log, Msg: Sent error: Variant: Message history index out of range (endpoint messages), Type: -
### Data
```json
{"arguments":["Sent error: Variant: Message history index out of range (endpoint messages)"],"logger":"console"}
```
- Time: 06:29:04.002 PM, Cat: sentry.event, Level: error, Msg: RangeError: Variant: Message history index out of range (endpoint messages), Type: -
- Time: 06:29:03.999 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 06:26:04.174 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: 06:26:04.171 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: User lacks permission to send message in room 'endpoint', Type: -
- Time: 06:26:04.170 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 06:26:02.724 PM, Cat: console, Level: log, Msg: Sent error: Variant: User lacks permission to send message in room '35', Type: -
### Data
```json
{"arguments":["Sent error: Variant: User lacks permission to send message in room '35'"],"logger":"console"}
```
- Time: 06:26:02.717 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: User lacks permission to send message in room '35', Type: -
- Time: 06:26:02.711 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 06:24:27.111 PM, Cat: console, Level: log, Msg: Sent error: Variant: User lacks permission to send message in room '11', Type: -
### Data
```json
{"arguments":["Sent error: Variant: User lacks permission to send message in room '11'"],"logger":"console"}
```
- Time: 06:24:27.108 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: User lacks permission to send message in room '11', Type: -
- Time: 06:24:27.105 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 06:23:56.387 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: 06:23:56.384 PM, Cat: sentry.event, Level: error, Msg: TypeError: Variant: Missing 'int' prop in Message component, Type: -
- Time: 06:23:56.381 PM, Cat: -, Level: info, Msg: User joined room, 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: 815
- Username: demo_user_33
- Email: demo@example.com

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

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