# Error
User lacks permission to send message in room 'int'

First seen: about 23 hours ago · Last seen: about 11 hours ago
Occurrences: 106
Resolved: No

## Info
- Message: User lacks permission to send message in room 'endpoint'
- When: about 11 hours ago
- Occurred: 2025-11-13 21:36:48 UTC
- Occurred Local: 2025-11-13 21:36:48 (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: Error
- Value: User lacks permission to send message in room 'endpoint'
- 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: 09:36:48.645 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 09:35:10.223 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: 09:35:10.217 PM, Cat: sentry.event, Level: error, Msg: TypeError: Variant: Missing 'endpoint' prop in Message component, Type: -
- Time: 09:35:10.213 PM, Cat: -, Level: info, Msg: Message sent, Type: -
- Time: 08:54:35.532 PM, Cat: console, Level: log, Msg: Sent error: Message history index out of range (timestamp messages), Type: -
### Data
```json
{"arguments":["Sent error: Message history index out of range (timestamp messages)"],"logger":"console"}
```
- Time: 08:54:35.526 PM, Cat: sentry.event, Level: error, Msg: RangeError: Message history index out of range (timestamp messages), Type: -
- Time: 08:54:35.522 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 08:51:39.007 PM, Cat: console, Level: log, Msg: Sent error: Variant: Invalid message format 'int', Type: -
### Data
```json
{"arguments":["Sent error: Variant: Invalid message format 'int'"],"logger":"console"}
```
- Time: 08:51:39.006 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: Invalid message format 'int', Type: -
- Time: 08:51:39.005 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 08:51:38.365 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:51:38.359 PM, Cat: sentry.event, Level: error, Msg: TypeError: Expected string for username, got int, Type: -
- Time: 08:51:38.355 PM, Cat: -, Level: info, Msg: Message sent, Type: -
- Time: 08:50:29.694 PM, Cat: console, Level: log, Msg: Sent error: Variant: Expected string for username, got timestamp, Type: -
### Data
```json
{"arguments":["Sent error: Variant: Expected string for username, got timestamp"],"logger":"console"}
```
- Time: 08:50:29.693 PM, Cat: sentry.event, Level: error, Msg: TypeError: Variant: Expected string for username, got timestamp, Type: -
- Time: 08:50:29.691 PM, Cat: -, Level: info, Msg: Message sent, Type: -
- Time: 08:49:50.760 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: 08:49:50.757 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: User lacks permission to send message in room 'int', Type: -
- Time: 08:49:50.756 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 08:49:48.875 PM, Cat: console, Level: log, Msg: Sent error: Variant: Expected string for username, got 46, Type: -
### Data
```json
{"arguments":["Sent error: Variant: Expected string for username, got 46"],"logger":"console"}
```
- Time: 08:49:48.872 PM, Cat: sentry.event, Level: error, Msg: TypeError: Variant: Expected string for username, got 46, Type: -
- Time: 08:49:48.871 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 08:49:47.055 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: 08:49:47.052 PM, Cat: sentry.event, Level: error, Msg: TypeError: Missing 'content' prop in Message component, Type: -
- Time: 08:49:47.052 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 08:49:45.874 PM, Cat: console, Level: log, Msg: Sent error: Variant: API connection timed out during fetch '463', Type: -
### Data
```json
{"arguments":["Sent error: Variant: API connection timed out during fetch '463'"],"logger":"console"}
```
- Time: 08:49:45.867 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: API connection timed out during fetch '463', Type: -
- Time: 08:49:45.861 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 08:48:56.375 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: 08:48:56.372 PM, Cat: sentry.event, Level: error, Msg: ReferenceError: Variant: Chat object has no property 'int', Type: -
- Time: 08:48:56.371 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 08:48:55.243 PM, Cat: console, Level: log, Msg: Sent error: Chat object has no property '6', Type: -
### Data
```json
{"arguments":["Sent error: Chat object has no property '6'"],"logger":"console"}
```
- Time: 08:48:55.240 PM, Cat: sentry.event, Level: error, Msg: ReferenceError: Chat object has no property '6', Type: -
- Time: 08:48:55.240 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 08:48:54.727 PM, Cat: console, Level: log, Msg: Sent error: Variant: User lacks permission to send message in room '949', Type: -
### Data
```json
{"arguments":["Sent error: Variant: User lacks permission to send message in room '949'"],"logger":"console"}
```
- Time: 08:48:54.726 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: User lacks permission to send message in room '949', Type: -
- Time: 08:48:54.724 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 08:48:23.602 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:48:23.599 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: User lacks permission to send message in room 'timestamp', Type: -
- Time: 08:48:23.598 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 08:48:22.479 PM, Cat: console, Level: log, Msg: Sent error: User lacks permission to send message in room 'content', Type: -
### Data
```json
{"arguments":["Sent error: User lacks permission to send message in room 'content'"],"logger":"console"}
```
- Time: 08:48:22.476 PM, Cat: sentry.event, Level: error, Msg: Error: User lacks permission to send message in room 'content', Type: -
- Time: 08:48:22.473 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 08:48:21.467 PM, Cat: console, Level: log, Msg: Sent error: Message not found with ID 976, Type: -
### Data
```json
{"arguments":["Sent error: Message not found with ID 976"],"logger":"console"}
```
- Time: 08:48:21.464 PM, Cat: sentry.event, Level: error, Msg: Error: Message not found with ID 976, Type: -
- Time: 08:48:21.463 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 08:48:19.694 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: 08:48:19.690 PM, Cat: sentry.event, Level: error, Msg: RangeError: Variant: Message history index out of range (endpoint messages), Type: -
- Time: 08:48:19.687 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 08:48:17.803 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: 08:48:17.801 PM, Cat: sentry.event, Level: error, Msg: ReferenceError: Variant: Chat object has no property 'endpoint', Type: -
- Time: 08:48:17.799 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 08:48:17.171 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: 08:48:17.168 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: API connection timed out during fetch 'endpoint', Type: -
- Time: 08:48:17.167 PM, Cat: -, Level: info, Msg: Message sent, Type: -
- Time: 08:48:16.575 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: 08:48:16.575 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: API connection timed out during fetch 'timestamp', Type: -
- Time: 08:48:16.572 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 08:48:15.210 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: 08:48:15.207 PM, Cat: sentry.event, Level: error, Msg: TypeError: Expected string for username, got content, Type: -
- Time: 08:48:15.206 PM, Cat: -, Level: info, Msg: Message sent, Type: -
- Time: 08:48:14.496 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: 08:48:14.493 PM, Cat: sentry.event, Level: error, Msg: RangeError: Message history index out of range (int messages), Type: -
- Time: 08:48:14.493 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 08:47:42.756 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: 08:47:42.755 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: API connection timed out during fetch 'int', Type: -
- Time: 08:47:42.753 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 08:47:41.505 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:47:41.502 PM, Cat: sentry.event, Level: error, Msg: TypeError: Variant: Missing 'int' prop in Message component, Type: -
- Time: 08:47:41.500 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 08:47:40.246 PM, Cat: console, Level: log, Msg: Sent error: API connection timed out during fetch '43', Type: -
### Data
```json
{"arguments":["Sent error: API connection timed out during fetch '43'"],"logger":"console"}
```
- Time: 08:47:40.243 PM, Cat: sentry.event, Level: error, Msg: Error: API connection timed out during fetch '43', Type: -
- Time: 08:47:40.243 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 08:47:06.321 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: 08:47:06.315 PM, Cat: sentry.event, Level: error, Msg: RangeError: Variant: Message history index out of range (content messages), Type: -
- Time: 08:47:06.312 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 08:45:38.118 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: 08:45:38.115 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: User lacks permission to send message in room 'int', Type: -
- Time: 08:45:38.112 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 08:45:06.408 PM, Cat: console, Level: log, Msg: Sent error: Variant: API connection timed out during fetch '49', Type: -
### Data
```json
{"arguments":["Sent error: Variant: API connection timed out during fetch '49'"],"logger":"console"}
```
- Time: 08:45:06.405 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: API connection timed out during fetch '49', Type: -
- Time: 08:45:06.404 PM, Cat: -, Level: info, Msg: Fetched chat history, Type: -
- Time: 08:45:04.984 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: 08:45:04.983 PM, Cat: sentry.event, Level: error, Msg: TypeError: Expected string for username, got endpoint, Type: -
- Time: 08:45:04.983 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 08:45:04.296 PM, Cat: console, Level: log, Msg: Sent error: Variant: Missing '6' prop in Message component, Type: -
### Data
```json
{"arguments":["Sent error: Variant: Missing '6' prop in Message component"],"logger":"console"}
```
- Time: 08:45:04.295 PM, Cat: sentry.event, Level: error, Msg: TypeError: Variant: Missing '6' prop in Message component, Type: -
- Time: 08:45:04.293 PM, Cat: -, Level: info, Msg: User typing, Type: -
- Time: 08:45:02.732 PM, Cat: console, Level: log, Msg: Sent error: Invalid message format '810', Type: -
### Data
```json
{"arguments":["Sent error: Invalid message format '810'"],"logger":"console"}
```
- Time: 08:45:02.730 PM, Cat: sentry.event, Level: error, Msg: Error: Invalid message format '810', Type: -
- Time: 08:45:02.729 PM, Cat: -, Level: info, Msg: User joined room, Type: -
- Time: 08:45:02.006 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: 08:45:01.999 PM, Cat: sentry.event, Level: error, Msg: Error: Variant: Invalid message format 'endpoint', Type: -
- Time: 08:45:01.992 PM, Cat: -, Level: info, Msg: Message sent, Type: -
- Time: 08:43:15.391 PM, Cat: console, Level: log, Msg: Sent error: User lacks permission to send message in room 'content', Type: -
### Data
```json
{"arguments":["Sent error: User lacks permission to send message in room 'content'"],"logger":"console"}
```
- Time: 08:43:15.388 PM, Cat: sentry.event, Level: error, Msg: Error: User lacks permission to send message in room 'content', Type: -
- Time: 08:43:15.387 PM, Cat: -, Level: info, Msg: Attachment uploaded, Type: -
- Time: 08:43:13.687 PM, Cat: console, Level: log, Msg: Sent error: Missing '35' prop in Message component, Type: -
### Data
```json
{"arguments":["Sent error: Missing '35' prop in Message component"],"logger":"console"}
```
- Time: 08:43:13.684 PM, Cat: sentry.event, Level: error, Msg: TypeError: Missing '35' prop in Message component, Type: -
- Time: 08:43:13.681 PM, Cat: -, Level: info, Msg: Message sent, 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: 279
- Username: demo_user_32
- Email: demo@example.com

## Extras
- context: {"component" => "ChatRoom", "room_name" => "Room 76"}
- debug_info: {"key" => "value2"}
- request_method: POST
- url: /chat/rooms/99

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