Cannot sync projects of 2012 #175

Closed
opened 2026-10-22 21:26:19 +00:00 by aniram · 2 comments
Owner

{"time":"2026-10-22T18:20:15.775231-03:00","level":"ERROR","source":{"function":"git.marinabsa.com/overdrives/chambersbr/internal/syncer.(*Sync).Tables","file":"/Users/hakuna/developer/go/_apps/chambersbr/internal/syncer/table.go","line":114},"msg":"fetch archive job","collection":"project","year":2012,"eTag":"","error":"fetch projects if changed: json: cannot unmarshal string into Go struct field .dados.0.ultimoStatus.idSituacao of type int"}

error: fetch projects if changed: json: cannot unmarshal string into Go struct field .dados.0.ultimoStatus.idSituacao of type intSync failed. E-mail sent to me@marinabsa.com.

`{"time":"2026-10-22T18:20:15.775231-03:00","level":"ERROR","source":{"function":"git.marinabsa.com/overdrives/chambersbr/internal/syncer.(*Sync).Tables","file":"/Users/hakuna/developer/go/_apps/chambersbr/internal/syncer/table.go","line":114},"msg":"fetch archive job","collection":"project","year":2012,"eTag":"","error":"fetch projects if changed: json: cannot unmarshal string into Go struct field .dados.0.ultimoStatus.idSituacao of type int"}` `error: fetch projects if changed: json: cannot unmarshal string into Go struct field .dados.0.ultimoStatus.idSituacao of type intSync failed. E-mail sent to me@marinabsa.com. `
aniram changed title from Cannot syncing projects of 2012 to Cannot sync projects of 2012 2026-10-22 21:26:44 +00:00
Author
Owner

I cannot check their declared API schema because the projects come from the files and not from the API.

I cannot check their declared API schema because the projects come from the files and not from the API.
aniram added reference fix/project-situation-id-nullable 2026-10-23 16:23:08 +00:00
Author
Owner

The problem is that the DB has ultimoStatus.idSituacao as an integer while it is actually a nullable string.
Change this when refactoring the DB.

The problem is that the DB has ultimoStatus.idSituacao as an integer while it is actually a nullable string. Change this when refactoring the DB.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
overdrives/chambersbr#175
No description provided.