Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot send attachment using /message #63

Open
jroxendal opened this issue Oct 18, 2022 · 1 comment
Open

Cannot send attachment using /message #63

jroxendal opened this issue Oct 18, 2022 · 1 comment

Comments

@jroxendal
Copy link

Thanks for the fun app. I'm fiddling with it for fun and sending text messages works fine but I cannot get images to attach. Here's my python script:

requests.post("http://localhost:3005/message", json={
        "body": {
            "message": "I made this image for you."
        },
         "attachments": [
            {  "mimeType": "image/jpeg", "filePath": "/Users/johan/Downloads/512.jpg" }
        ],
        "recipient": {
            "handle": "REDACTED", # my appleid email, so i'm sending as myself. 
        }
    })

The message shows up and a placeholder for the image, which is marked as Not Delivered after a while.
Screenshot 2022-10-18 at 13 41 15

When trying with a png, I don't even get the preview image icon in the thread, so no luck there either.

I'm figured I'd look in the logs to see if I can find more info, but I don't know where the logs are written to. Any ideas are very welcome!

@ZekeSnider
Copy link
Owner

I think this is due to a permissions issue, can you try sending an image that's in ~/Pictures/ instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants