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

Fix source file uploading in v1.7.0 #67

Closed
artem-vavilov opened this issue Jan 30, 2024 · 0 comments · Fixed by #70
Closed

Fix source file uploading in v1.7.0 #67

artem-vavilov opened this issue Jan 30, 2024 · 0 comments · Fixed by #70

Comments

@artem-vavilov
Copy link
Contributor

After updating from v1.6.0 to v1.7.0, JSON files began to upload corrupted.

Issues

  1. #add_file New JSON files are corrupted as their JSON data content has been replaced with the local file path string.
Original file content Uploaded file content
{"data": "Data"} "/path/to/file.json"
  1. #update_or_restore_file Returns error:
{
  "errors" => [
    "error" => {
      "key"    => "storageId",
      "errors" => [
        "code"    => "fileInvalid",
        "message" => "Uploaded file \"file.json\" is invalid and cannot be processed"
      ]
    }
  ]
}
artem-vavilov added a commit to artem-vavilov/crowdin-api-client-ruby that referenced this issue Feb 3, 2024
@andrii-bodnar andrii-bodnar linked a pull request Feb 5, 2024 that will close this issue
artem-vavilov added a commit to artem-vavilov/crowdin-api-client-ruby that referenced this issue Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants