Repository navigation
Conversation
OpenRouter's activity API dates each row as "2026-11-08 00:00:00". The connector passed that through as the line date, so the sync asked Frankfurter for /v1/2026-11-08 00:00:00, got a 404, and the connection errored for any workspace not in USD. Lines now carry the day alone; externalIds are unchanged, so stored lines are updated, not duplicated. Vercel's billing charges request ended at midnight after today, a moment in the future, and the connection failed with a 400. The end is now capped at the start of the current UTC day; today's charges come with the next sync, which rereads the last 3 days.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two connector errors seen on openprofit.dev with a CHF workspace.
OpenRouter:
FX USD→CHF 2026-11-08 00:00:00: 404OpenRouter's
/activityreturnsdateas"2026-11-08 00:00:00".activityLinesused it as the line date, sorateForbuilthttps://api.frankfurter.dev/v1/2026-11-08 00:00:00?..., which 404s (/v1/2026-11-08answers fine). Every workspace whose base currency isn't USD fails the sync and shows $0 for OpenRouter.Lines now take
r.date.slice(0, 10).externalIdis left as it was, so existing lines from USD workspaces are updated in place rather than duplicated.Vercel:
Vercel returned an error (400).fetchCostsset the exclusivetoto midnight UTC afterrange.to, which is today, so every sync asked for charges up to tomorrow. The end is now capped at the start of the current UTC day (tois exclusive and day-granular per the endpoint docs). Today's partial day comes with the next sync, which rereads the last 3 days.I couldn't see Vercel's response body (the UI shows the generic sentence), so the future
tobeing the cause of the 400 is my best reading of the request rather than something confirmed against the API.Checks
biome checkpasses on both files🤖 Generated with Claude Code