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

[BUG] phrase git_lab_sync history = ERROR: json: cannot unmarshal string into Go struct field GitlabSyncHistory.status #362

Closed
horstmannmat opened this issue Jul 25, 2023 · 2 comments · Fixed by #363

Comments

@horstmannmat
Copy link
Contributor

When executing the phrase git_lab_sync history in the latest version of the phrase-cli, it raises an error message:

ERROR: json: cannot unmarshal string into Go struct field GitlabSyncHistory.status of type int32 

Which seems to be related to a type mismatch between two models, specifically gitlab_sync.yaml#L28-L29 and gitlab_sync_history.yaml#L6-L7.

This discrepancy in types causes the command to fail and prevents the expected functionality.

gitlab_sync.yamlgitlab_sync_history.yaml
last_status:
  type: string
    
status:
  type: integer
    
@horstmannmat
Copy link
Contributor Author

I will create a quick PR for it, but I lack ways of testing it properly

@theSoenke
Copy link
Collaborator

Hi @horstmannmat, this should now be resolved in the latest release 2.8.3. Thanks again for the report!

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

Successfully merging a pull request may close this issue.

2 participants