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

First seen: 4 days ago · Last seen: about 17 hours ago
Occurrences: 474
Resolved: No

## Info
- Message: Variant: Message history index out of range (timestamp messages)
- When: about 17 hours ago
- Occurred: 2025-11-16 20:02:59 UTC
- Occurred Local: 2025-11-16 20:02:59 (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 (timestamp 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: 08:02:59.377 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 08:02:28.651 PM, 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: 08:02:28.648 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: User lacks permission to send message in room 'timestamp', Type: -
- Time: 08:02:28.647 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 08:02:27.348 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: 08:02:27.345 PM, Cat: sentry.event, Level: error, Msg: TypeError: Variant: Missing 'int' prop in Message component, Type: -
- Time: 08:02:27.342 PM, Cat: -, Level: info, Msg: Message sent, Type: -
- Time: 08:02:25.836 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: 08:02:25.834 PM, Cat: sentry.event, Level: error, Msg: Error: Message not found with ID endpoint, Type: -
- Time: 08:02:25.832 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 08:01:55.154 PM, Cat: console, Level: log, Msg: Sent error: Expected string for username, got int, Type: -
### Data
```json
{"arguments":["Sent error: Expected string for username, got int"],"logger":"console"}
```
- Time: 08:01:55.151 PM, Cat: sentry.event, Level: error, Msg: TypeError: Expected string for username, got int, Type: -
- Time: 08:01:55.151 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 08:01:54.134 PM, Cat: console, Level: log, Msg: Sent error: API connection timed out during fetch '35', Type: -
### Data
```json
{"arguments":["Sent error: API connection timed out during fetch '35'"],"logger":"console"}
```
- Time: 08:01:54.131 PM, Cat: sentry.event, Level: error, Msg: Error: API connection timed out during fetch '35', Type: -
- Time: 08:01:54.131 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 08:01:52.440 PM, Cat: console, Level: log, Msg: Sent error: Variant: Chat object has no property '30', Type: -
### Data
```json
{"arguments":["Sent error: Variant: Chat object has no property '30'"],"logger":"console"}
```
- Time: 08:01:52.430 PM, Cat: sentry.event, Level: error, Msg: ReferenceError: Variant: Chat object has no property '30', Type: -
- Time: 08:01:52.424 PM, Cat: -, Level: info, Msg: Message sent, Type: -
- Time: 08:01:18.660 PM, Cat: console, Level: log, Msg: Sent error: User lacks permission to send message in room 'timestamp', Type: -
### Data
```json
{"arguments":["Sent error: User lacks permission to send message in room 'timestamp'"],"logger":"console"}
```
- Time: 08:01:18.653 PM, Cat: sentry.event, Level: error, Msg: Error: User lacks permission to send message in room 'timestamp', Type: -
- Time: 08:01:18.648 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 07:55:10.203 PM, Cat: console, Level: log, Msg: Sent error: User lacks permission to send message in room '26', Type: -
### Data
```json
{"arguments":["Sent error: User lacks permission to send message in room '26'"],"logger":"console"}
```
- Time: 07:55:10.197 PM, Cat: sentry.event, Level: error, Msg: Error: User lacks permission to send message in room '26', Type: -
- Time: 07:55:10.194 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 07:00:33.334 PM, Cat: console, Level: log, Msg: Sent error: Message history index out of range (13 messages), Type: -
### Data
```json
{"arguments":["Sent error: Message history index out of range (13 messages)"],"logger":"console"}
```
- Time: 07:00:33.332 PM, Cat: sentry.event, Level: error, Msg: RangeError: Message history index out of range (13 messages), Type: -
- Time: 07:00:33.331 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 07:00:32.329 PM, Cat: console, Level: log, Msg: Sent error: Variant: User lacks permission to send message in room '38', Type: -
### Data
```json
{"arguments":["Sent error: Variant: User lacks permission to send message in room '38'"],"logger":"console"}
```
- Time: 07:00:32.326 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: User lacks permission to send message in room '38', Type: -
- Time: 07:00:32.325 PM, Cat: -, Level: info, Msg: Message sent, Type: -
- Time: 07:00:00.911 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: 07:00:00.907 PM, Cat: sentry.event, Level: error, Msg: Error: API connection timed out during fetch 'content', Type: -
- Time: 07:00:00.901 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 06:59:13.561 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:59:13.552 PM, Cat: sentry.event, Level: error, Msg: TypeError: Variant: Missing 'int' prop in Message component, Type: -
- Time: 06:59:13.546 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 06:58:25.885 PM, 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: 06:58:25.884 PM, Cat: sentry.event, Level: error, Msg: TypeError: Variant: Expected string for username, got content, Type: -
- Time: 06:58:25.881 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 06:58:24.444 PM, 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: 06:58:24.438 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: User lacks permission to send message in room 'timestamp', Type: -
- Time: 06:58:24.434 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 06:56:42.378 PM, Cat: console, Level: log, Msg: Sent error: Missing '45' prop in Message component, Type: -
### Data
```json
{"arguments":["Sent error: Missing '45' prop in Message component"],"logger":"console"}
```
- Time: 06:56:42.378 PM, Cat: sentry.event, Level: error, Msg: TypeError: Missing '45' prop in Message component, Type: -
- Time: 06:56:42.377 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 06:56:41.696 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: 06:56:41.694 PM, Cat: sentry.event, Level: error, Msg: ReferenceError: Variant: Chat object has no property 'endpoint', Type: -
- Time: 06:56:41.694 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 06:56:02.201 PM, Cat: console, Level: log, Msg: Sent error: Variant: API connection timed out during fetch '465', Type: -
### Data
```json
{"arguments":["Sent error: Variant: API connection timed out during fetch '465'"],"logger":"console"}
```
- Time: 06:56:02.200 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: API connection timed out during fetch '465', Type: -
- Time: 06:56:02.198 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 06:56:00.868 PM, Cat: console, Level: log, Msg: Sent error: API connection timed out during fetch '32', Type: -
### Data
```json
{"arguments":["Sent error: API connection timed out during fetch '32'"],"logger":"console"}
```
- Time: 06:56:00.865 PM, Cat: sentry.event, Level: error, Msg: Error: API connection timed out during fetch '32', Type: -
- Time: 06:56:00.862 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 06:56:00.311 PM, Cat: console, Level: log, Msg: Sent error: Expected string for username, got endpoint, Type: -
### Data
```json
{"arguments":["Sent error: Expected string for username, got endpoint"],"logger":"console"}
```
- Time: 06:56:00.308 PM, Cat: sentry.event, Level: error, Msg: TypeError: Expected string for username, got endpoint, Type: -
- Time: 06:56:00.305 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 06:55:58.421 PM, Cat: console, Level: log, Msg: Sent error: Variant: Message history index out of range (151 messages), Type: -
### Data
```json
{"arguments":["Sent error: Variant: Message history index out of range (151 messages)"],"logger":"console"}
```
- Time: 06:55:58.413 PM, Cat: sentry.event, Level: error, Msg: RangeError: Variant: Message history index out of range (151 messages), Type: -
- Time: 06:55:58.404 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 06:54:47.575 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: 06:54:47.572 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: User lacks permission to send message in room 'int', Type: -
- Time: 06:54:47.572 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 06:54:46.361 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: 06:54:46.359 PM, Cat: sentry.event, Level: error, Msg: Error: Message not found with ID timestamp, Type: -
- Time: 06:54:46.358 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 06:54:15.602 PM, Cat: console, Level: log, Msg: Sent error: Message not found with ID 735, Type: -
### Data
```json
{"arguments":["Sent error: Message not found with ID 735"],"logger":"console"}
```
- Time: 06:54:15.601 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 06:54:15.601 PM, Cat: sentry.event, Level: error, Msg: Error: Message not found with ID 735, Type: -
- Time: 06:54:14.946 PM, Cat: console, Level: log, Msg: Sent error: Variant: API connection timed out during fetch 'int', Type: -
### Data
```json
{"arguments":["Sent error: Variant: API connection timed out during fetch 'int'"],"logger":"console"}
```
- Time: 06:54:14.943 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: API connection timed out during fetch 'int', Type: -
- Time: 06:54:14.941 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 06:54:13.720 PM, Cat: console, Level: log, Msg: Sent error: Invalid message format '327', Type: -
### Data
```json
{"arguments":["Sent error: Invalid message format '327'"],"logger":"console"}
```
- Time: 06:54:13.717 PM, Cat: sentry.event, Level: error, Msg: Error: Invalid message format '327', Type: -
- Time: 06:54:13.714 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 06:54:12.474 PM, Cat: console, Level: log, Msg: Sent error: Message not found with ID 39, Type: -
### Data
```json
{"arguments":["Sent error: Message not found with ID 39"],"logger":"console"}
```
- Time: 06:54:12.470 PM, Cat: sentry.event, Level: error, Msg: Error: Message not found with ID 39, Type: -
- Time: 06:54:12.469 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 06:54:10.604 PM, 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: 06:54:10.601 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: Message not found with ID endpoint, Type: -
- Time: 06:54:10.599 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 06:54:09.892 PM, Cat: console, Level: log, Msg: Sent error: API connection timed out during fetch 'timestamp', Type: -
### Data
```json
{"arguments":["Sent error: API connection timed out during fetch 'timestamp'"],"logger":"console"}
```
- Time: 06:54:09.884 PM, Cat: sentry.event, Level: error, Msg: Error: API connection timed out during fetch 'timestamp', Type: -
- Time: 06:54:09.882 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 06:53:05.450 PM, Cat: console, Level: log, Msg: Sent error: Expected string for username, got int, Type: -
### Data
```json
{"arguments":["Sent error: Expected string for username, got int"],"logger":"console"}
```
- Time: 06:53:05.447 PM, Cat: sentry.event, Level: error, Msg: TypeError: Expected string for username, got int, Type: -
- Time: 06:53:05.446 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 06:53:03.940 PM, Cat: console, Level: log, Msg: Sent error: Variant: Chat object has no property '441', Type: -
### Data
```json
{"arguments":["Sent error: Variant: Chat object has no property '441'"],"logger":"console"}
```
- Time: 06:53:03.934 PM, Cat: sentry.event, Level: error, Msg: ReferenceError: Variant: Chat object has no property '441', Type: -
- Time: 06:53:03.933 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 06:53:02.121 PM, Cat: console, Level: log, Msg: Sent error: Variant: Message history index out of range (211 messages), Type: -
### Data
```json
{"arguments":["Sent error: Variant: Message history index out of range (211 messages)"],"logger":"console"}
```
- Time: 06:53:02.112 PM, Cat: sentry.event, Level: error, Msg: RangeError: Variant: Message history index out of range (211 messages), Type: -
- Time: 06:53:02.107 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 06:52:25.664 PM, Cat: console, Level: log, Msg: Sent error: Variant: User lacks permission to send message in room '770', Type: -
### Data
```json
{"arguments":["Sent error: Variant: User lacks permission to send message in room '770'"],"logger":"console"}
```
- Time: 06:52:25.663 PM, Cat: -, Level: info, Msg: Message sent, Type: -
- Time: 06:52:25.663 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: User lacks permission to send message in room '770', Type: -
- Time: 06:52:24.663 PM, Cat: console, Level: log, Msg: Sent error: Expected string for username, got endpoint, Type: -
### Data
```json
{"arguments":["Sent error: Expected string for username, got endpoint"],"logger":"console"}
```
- Time: 06:52:24.660 PM, Cat: sentry.event, Level: error, Msg: TypeError: Expected string for username, got endpoint, Type: -
- Time: 06:52:24.658 PM, Cat: -, Level: info, Msg: Attachment uploaded, 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: 350
- Username: demo_user_97
- Email: demo@example.com

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

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