omi icon indicating copy to clipboard operation
omi copied to clipboard

Conversation export returns empty JSON (2 bytes) on iPhone

Open omi-discord-vector[bot] opened this issue 8 months ago • 7 comments

Bug Report

When exporting conversations on iPhone, the exported JSON file is empty (only 2 bytes).

Reported by community member in Discord.

Steps to reproduce

  1. Open Omi app on iPhone
  2. Export conversation(s)
  3. Check the exported JSON file — it contains only 2 bytes (empty)

Expected behavior

Exported JSON should contain the full conversation data.

Platform

  • iOS (iPhone)

omi-discord-vector[bot] avatar Mar 06 '26 00:03 omi-discord-vector[bot]

thanks for mention this. I am trying to export my conversations from OMI in the app. I tested on both Android and iPhone, and the export result is always an empty conversations JSON. The file contains only an empty block and is about two bytes in size.

I also tried exporting as a file, but that does not work either.

I have thousands of conversations and need to export them successfully. Please help me understand how to export my conversations correctly, or how to debug why the export is empty (for example, where to check logs, what settings/permissions could cause this, or what steps I can take to identify why nothing is included in the export).

reference in discord

BlakeSec avatar Mar 06 '26 00:03 BlakeSec

It's also reproduced via Android and CLI curl -H "Authorization: Bearer API_KEY" \ "https://api.omi.me/v1/dev/user/conversations?limit=10&include_transcript=true" \ -o conversations.json

BlakeSec avatar Mar 06 '26 00:03 BlakeSec

Do you have any actual conversations that have been captured? I can reproduce this either in the app or via the API:

➜  ~ curl -vvv -H "Authorization: Bearer $OMI_API_KEY"  "https://api.omi.me/v1/dev/user/conversations?limit=10&include_transcript=true"
* Host api.omi.me:443 was resolved.
* IPv6: (none)
* IPv4: 34.54.223.100
*   Trying 34.54.223.100:443...
* Connected to api.omi.me (34.54.223.100) port 443
* ALPN: curl offers h2,http/1.1
* (304) (OUT), TLS handshake, Client hello (1):
*  CAfile: /etc/ssl/cert.pem
*  CApath: none
* (304) (IN), TLS handshake, Server hello (2):
* (304) (IN), TLS handshake, Unknown (8):
* (304) (IN), TLS handshake, Certificate (11):
* (304) (IN), TLS handshake, CERT verify (15):
* (304) (IN), TLS handshake, Finished (20):
* (304) (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / AEAD-CHACHA20-POLY1305-SHA256 / [blank] / UNDEF
* ALPN: server accepted h2
* Server certificate:
*  subject: CN=api.omi.me
*  start date: Feb  4 09:32:12 2026 GMT
*  expire date: May  5 10:26:05 2026 GMT
*  subjectAltName: host "api.omi.me" matched cert's "api.omi.me"
*  issuer: C=US; O=Google Trust Services; CN=WR3
*  SSL certificate verify ok.
* using HTTP/2
* [HTTP/2] [1] OPENED stream for https://api.omi.me/v1/dev/user/conversations?limit=10&include_transcript=true
* [HTTP/2] [1] [:method: GET]
* [HTTP/2] [1] [:scheme: https]
* [HTTP/2] [1] [:authority: api.omi.me]
* [HTTP/2] [1] [:path: /v1/dev/user/conversations?limit=10&include_transcript=true]
* [HTTP/2] [1] [user-agent: curl/8.7.1]
* [HTTP/2] [1] [accept: */*]
* [HTTP/2] [1] [authorization: Bearer {REDACTED}]
> GET /v1/dev/user/conversations?limit=10&include_transcript=true HTTP/2
> Host: api.omi.me
> User-Agent: curl/8.7.1
> Accept: */*
> Authorization: Bearer {REDACTED}
>
* Request completely sent off
< HTTP/2 200
< content-type: application/json
< x-cloud-trace-context: c63206ee0eda32d17aed4042d4a2dc82
< date: Fri, 06 Mar 2026 05:07:16 GMT
< server: Google Frontend
< content-length: 376646
< via: 1.1 google
< alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
<
[{"id":"f828fd90-a47d-46d9-9c5a-216763fa30fd","created_at":"2026-03-06T00:59:36.103045Z","started_at":"2026-03-06T01:00:46.854784Z","finished_at":"2026-03-06T01:45:17.436963Z",....{REDACTED}

TpyoKnig avatar Mar 06 '26 05:03 TpyoKnig

@BlakeSec pls try exporting via web at https://app.omi.me. It might take a few minutes (depending on the number of conversations) and lmk how it goes. Also can you pls share the version of the app you're on

mdmohsin7 avatar Mar 06 '26 09:03 mdmohsin7

Hey you can export using web app

hugoaap-code avatar Mar 06 '26 10:03 hugoaap-code

@mdmohsin7 I’m getting the same result on web, Android, and iOS, so it’s most likely a backend issue. We already discussed this in Discord, and I’ve tried multiple times.

BlakeSec avatar Mar 06 '26 12:03 BlakeSec

We investigated this and checked the backend logs — no errors showing up for the export endpoint. We also checked the account from your Discord DM and it only has 71 conversations, which exports fine.

Could you share the UID of the specific account where you're seeing the empty export? It's possible the issue is account-specific. You can find your UID in the app under Settings > Developer.

Also, for the CLI export via /v1/dev/user/conversations — make sure your API key has the conversations:read scope enabled. An API key without that scope would return an empty response.

mdmohsin7 avatar Mar 08 '26 12:03 mdmohsin7