reddit.inbox.message() redirected to /login/ endpoint.
### Describe the Bug
While trying to access `.inbox.message` and `.inbox.messages` I get a 302 error and the response contains a redirect to a login endpoint.
### Desired Result
Functions return message object(s).
### Code to reproduce the bug
```Python
reddit = praw.Reddit(
client_id='',
client_secret='',
username='',
password='',
user_agent='',
ratelimit_seconds=300
)
reddit.read_only=True
for message in reddit.inbox.messages():
print(message)
```
### My code does not include sensitive credentials
- [x] Yes, I have removed sensitive credentials from my code.
### Relevant Logs
```Shell
prawcore.exceptions.Redirect: Redirect to /login/ (You may be trying to perform a non-read-only action via a read-only instance.)
```
### This code has previously worked as intended
Yes
### Operating System/Environment
macOS Sequoia 15.4.1
### Python Version
3.12
### PRAW Version
7.8.1
### Links, references, and/or additional comments?
_No response_
12 条评论