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

First seen: 2 days ago · Last seen: about 6 hours ago
Occurrences: 233
Resolved: No

## Info
- Message: Message history index out of range (timestamp messages)
- When: about 6 hours ago
- Occurred: 2025-11-15 02:57:09 UTC
- Occurred Local: 2025-11-15 02:57:09 (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: 02:57:09.627 AM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 02:57:08.437 AM, Cat: console, Level: log, Msg: Sent error: Variant: Expected string for username, got 924, Type: -
### Data
```json
{"arguments":["Sent error: Variant: Expected string for username, got 924"],"logger":"console"}
```
- Time: 02:57:08.434 AM, Cat: sentry.event, Level: error, Msg: TypeError: Variant: Expected string for username, got 924, Type: -
- Time: 02:57:08.433 AM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 02:57:07.085 AM, Cat: console, Level: log, Msg: Sent error: Variant: Expected string for username, got 697, Type: -
### Data
```json
{"arguments":["Sent error: Variant: Expected string for username, got 697"],"logger":"console"}
```
- Time: 02:57:07.085 AM, Cat: sentry.event, Level: error, Msg: TypeError: Variant: Expected string for username, got 697, Type: -
- Time: 02:57:07.084 AM, Cat: -, Level: info, Msg: Message sent, Type: -
- Time: 02:57:06.525 AM, Cat: console, Level: log, Msg: Sent error: User lacks permission to send message in room '766', Type: -
### Data
```json
{"arguments":["Sent error: User lacks permission to send message in room '766'"],"logger":"console"}
```
- Time: 02:57:06.517 AM, Cat: sentry.event, Level: error, Msg: Error: User lacks permission to send message in room '766', Type: -
- Time: 02:57:06.513 AM, Cat: -, Level: info, Msg: Message sent, Type: -
- Time: 02:55:46.007 AM, 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: 02:55:46.000 AM, Cat: sentry.event, Level: error, Msg: TypeError: Missing 'int' prop in Message component, Type: -
- Time: 02:55:45.996 AM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 02:55:14.293 AM, Cat: console, Level: log, Msg: Sent error: Message history index out of range (49 messages), Type: -
### Data
```json
{"arguments":["Sent error: Message history index out of range (49 messages)"],"logger":"console"}
```
- Time: 02:55:14.289 AM, Cat: sentry.event, Level: error, Msg: RangeError: Message history index out of range (49 messages), Type: -
- Time: 02:55:14.288 AM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 02:55:13.355 AM, Cat: console, Level: log, Msg: Sent error: Message not found with ID 25, Type: -
### Data
```json
{"arguments":["Sent error: Message not found with ID 25"],"logger":"console"}
```
- Time: 02:55:13.352 AM, Cat: sentry.event, Level: error, Msg: Error: Message not found with ID 25, Type: -
- Time: 02:55:13.351 AM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 02:55:11.903 AM, Cat: console, Level: log, Msg: Sent error: Message history index out of range (425 messages), Type: -
### Data
```json
{"arguments":["Sent error: Message history index out of range (425 messages)"],"logger":"console"}
```
- Time: 02:55:11.901 AM, Cat: sentry.event, Level: error, Msg: RangeError: Message history index out of range (425 messages), Type: -
- Time: 02:55:11.900 AM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 02:55:11.049 AM, Cat: console, Level: log, Msg: Sent error: User lacks permission to send message in room '20', Type: -
### Data
```json
{"arguments":["Sent error: User lacks permission to send message in room '20'"],"logger":"console"}
```
- Time: 02:55:11.046 AM, Cat: sentry.event, Level: error, Msg: Error: User lacks permission to send message in room '20', Type: -
- Time: 02:55:11.046 AM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 02:55:09.111 AM, 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: 02:55:09.108 AM, Cat: sentry.event, Level: error, Msg: Error: Variant: User lacks permission to send message in room 'endpoint', Type: -
- Time: 02:55:09.107 AM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 02:55:07.378 AM, Cat: console, Level: log, Msg: Sent error: Variant: Message not found with ID endpoint, Type: -
### Data
```json
{"arguments":["Sent error: Variant: Message not found with ID endpoint"],"logger":"console"}
```
- Time: 02:55:07.377 AM, Cat: sentry.event, Level: error, Msg: Error: Variant: Message not found with ID endpoint, Type: -
- Time: 02:55:07.375 AM, Cat: -, Level: info, Msg: Message sent, Type: -
- Time: 02:55:05.996 AM, Cat: console, Level: log, Msg: Sent error: Variant: User lacks permission to send message in room 'timestamp', Type: -
### Data
```json
{"arguments":["Sent error: Variant: User lacks permission to send message in room 'timestamp'"],"logger":"console"}
```
- Time: 02:55:05.996 AM, Cat: sentry.event, Level: error, Msg: Error: Variant: User lacks permission to send message in room 'timestamp', Type: -
- Time: 02:55:05.994 AM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 02:55:04.519 AM, 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: 02:55:04.516 AM, Cat: sentry.event, Level: error, Msg: Error: User lacks permission to send message in room 'endpoint', Type: -
- Time: 02:55:04.515 AM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 02:54:33.798 AM, Cat: console, Level: log, Msg: Sent error: Chat object has no property 'int', Type: -
### Data
```json
{"arguments":["Sent error: Chat object has no property 'int'"],"logger":"console"}
```
- Time: 02:54:33.796 AM, Cat: sentry.event, Level: error, Msg: ReferenceError: Chat object has no property 'int', Type: -
- Time: 02:54:33.795 AM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 02:54:32.707 AM, 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: 02:54:32.704 AM, Cat: sentry.event, Level: error, Msg: Error: Message not found with ID content, Type: -
- Time: 02:54:32.703 AM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 02:54:02.076 AM, Cat: console, Level: log, Msg: Sent error: User lacks permission to send message in room 'int', Type: -
### Data
```json
{"arguments":["Sent error: User lacks permission to send message in room 'int'"],"logger":"console"}
```
- Time: 02:54:02.073 AM, Cat: sentry.event, Level: error, Msg: Error: User lacks permission to send message in room 'int', Type: -
- Time: 02:54:02.071 AM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 02:54:00.836 AM, Cat: console, Level: log, Msg: Sent error: Invalid message format '29', Type: -
### Data
```json
{"arguments":["Sent error: Invalid message format '29'"],"logger":"console"}
```
- Time: 02:54:00.831 AM, Cat: sentry.event, Level: error, Msg: Error: Invalid message format '29', Type: -
- Time: 02:54:00.828 AM, Cat: -, Level: info, Msg: Message sent, Type: -
- Time: 02:53:29.186 AM, Cat: console, Level: log, Msg: Sent error: Variant: Chat object has no property '24', Type: -
### Data
```json
{"arguments":["Sent error: Variant: Chat object has no property '24'"],"logger":"console"}
```
- Time: 02:53:29.184 AM, Cat: sentry.event, Level: error, Msg: ReferenceError: Variant: Chat object has no property '24', Type: -
- Time: 02:53:29.183 AM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 02:53:27.730 AM, 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: 02:53:27.726 AM, Cat: sentry.event, Level: error, Msg: Error: Variant: Message not found with ID timestamp, Type: -
- Time: 02:53:27.724 AM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 02:53:26.029 AM, 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: 02:53:26.026 AM, Cat: sentry.event, Level: error, Msg: RangeError: Message history index out of range (int messages), Type: -
- Time: 02:53:26.025 AM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 02:53:24.957 AM, 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: 02:53:24.951 AM, Cat: sentry.event, Level: error, Msg: TypeError: Missing 'int' prop in Message component, Type: -
- Time: 02:53:24.948 AM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 02:44:56.299 AM, Cat: console, Level: log, Msg: Sent error: Expected string for username, got 676, Type: -
### Data
```json
{"arguments":["Sent error: Expected string for username, got 676"],"logger":"console"}
```
- Time: 02:44:56.293 AM, Cat: sentry.event, Level: error, Msg: TypeError: Expected string for username, got 676, Type: -
- Time: 02:44:56.290 AM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 02:00:07.921 AM, Cat: console, Level: log, Msg: Sent error: Variant: Invalid message format '13', Type: -
### Data
```json
{"arguments":["Sent error: Variant: Invalid message format '13'"],"logger":"console"}
```
- Time: 02:00:07.918 AM, Cat: sentry.event, Level: error, Msg: Error: Variant: Invalid message format '13', Type: -
- Time: 02:00:07.917 AM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 02:00:06.838 AM, Cat: console, Level: log, Msg: Sent error: User lacks permission to send message in room '295', Type: -
### Data
```json
{"arguments":["Sent error: User lacks permission to send message in room '295'"],"logger":"console"}
```
- Time: 02:00:06.829 AM, Cat: sentry.event, Level: error, Msg: Error: User lacks permission to send message in room '295', Type: -
- Time: 02:00:06.822 AM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 01:58:32.984 AM, Cat: console, Level: log, Msg: Sent error: Variant: Expected string for username, got content, Type: -
### Data
```json
{"arguments":["Sent error: Variant: Expected string for username, got content"],"logger":"console"}
```
- Time: 01:58:32.983 AM, Cat: sentry.event, Level: error, Msg: TypeError: Variant: Expected string for username, got content, Type: -
- Time: 01:58:32.983 AM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 01:58:31.654 AM, 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:58:31.650 AM, Cat: sentry.event, Level: error, Msg: Error: Variant: Message not found with ID timestamp, Type: -
- Time: 01:58:31.648 AM, Cat: -, Level: info, Msg: Message sent, Type: -
- Time: 01:57:54.443 AM, 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: 01:57:54.440 AM, Cat: sentry.event, Level: error, Msg: TypeError: Expected string for username, got content, Type: -
- Time: 01:57:54.440 AM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 01:57:52.598 AM, Cat: console, Level: log, Msg: Sent error: Variant: Message history index out of range (int messages), Type: -
### Data
```json
{"arguments":["Sent error: Variant: Message history index out of range (int messages)"],"logger":"console"}
```
- Time: 01:57:52.596 AM, Cat: sentry.event, Level: error, Msg: RangeError: Variant: Message history index out of range (int messages), Type: -
- Time: 01:57:52.595 AM, Cat: -, Level: info, Msg: Message sent, Type: -
- Time: 01:57:17.479 AM, Cat: console, Level: log, Msg: Sent error: Variant: Message not found with ID 803, Type: -
### Data
```json
{"arguments":["Sent error: Variant: Message not found with ID 803"],"logger":"console"}
```
- Time: 01:57:17.474 AM, Cat: sentry.event, Level: error, Msg: Error: Variant: Message not found with ID 803, Type: -
- Time: 01:57:17.471 AM, Cat: -, Level: info, Msg: Message sent, Type: -
- Time: 01:57:15.644 AM, 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:57:15.642 AM, Cat: sentry.event, Level: error, Msg: Error: Variant: Message not found with ID int, Type: -
- Time: 01:57:15.641 AM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 01:57:14.970 AM, 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:57:14.967 AM, Cat: sentry.event, Level: error, Msg: TypeError: Variant: Expected string for username, got endpoint, Type: -
- Time: 01:57:14.966 AM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 01:57:14.437 AM, Cat: console, Level: log, Msg: Sent error: Invalid message format '30', Type: -
### Data
```json
{"arguments":["Sent error: Invalid message format '30'"],"logger":"console"}
```
- Time: 01:57:14.434 AM, Cat: sentry.event, Level: error, Msg: Error: Invalid message format '30', Type: -
- Time: 01:57:14.433 AM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 01:57:13.809 AM, Cat: console, Level: log, Msg: Sent error: Expected string for username, got 879, Type: -
### Data
```json
{"arguments":["Sent error: Expected string for username, got 879"],"logger":"console"}
```
- Time: 01:57:13.806 AM, Cat: sentry.event, Level: error, Msg: TypeError: Expected string for username, got 879, Type: -
- Time: 01:57:13.805 AM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 01:57:12.829 AM, Cat: console, Level: log, Msg: Sent error: Variant: Chat object has no property '32', Type: -
### Data
```json
{"arguments":["Sent error: Variant: Chat object has no property '32'"],"logger":"console"}
```
- Time: 01:57:12.819 AM, Cat: sentry.event, Level: error, Msg: ReferenceError: Variant: Chat object has no property '32', Type: -
- Time: 01:57:12.816 AM, 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: 585
- Username: demo_user_99
- Email: demo@example.com

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

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