Giter Club home page Giter Club logo

fci's Introduction

Image

fci's People

Contributors

mamantoha avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

fci's Issues

error: FreshdeskAPI::Error::NetworkError on export

All works great in terms of import to CrowdIn and downloading translated files, but I am getting an error on export to Freshdesk

here's my fci.yml

Crowdin API credentials
crowdin_project_id: 'microbit-support'
crowdin_api_key: '<api_key>'
crowdin_base_url: 'https://api.crowdin.com'

# Freshdesk API credentials
freshdesk_base_url: 'https://microbitfoundation.freshdesk.com'
freshdesk_username: '<username>
freshdesk_password: '<password>'

# Freshdesk catogories
categories:
- freshdesk_category: '19000083681'
  translations:
    -
      crowdin_language_code: 'pl'
      freshdesk_category_id: '19000083681'
    -
      crowdin_language_code: 'en-zhcn'
      freshdesk_category_id: '19000083681'

and here is the output of fci -v export

RestClient.get "https://microbitfoundation.freshdesk.com/solution/categories/19000083681", "Accept"=>"application/json", "Accept-Encoding"=>"gzip ,deflate", "Content-Type"=>"application/json", "User-Agent"=>"FreshdeskAPI API 0.1.3"
# => 200 OK | application/json 324 bytes
[Freshdesk] Create new Folder `Getting Started` for language `pl`.
warning: Overriding "Content-Type" header "application/json" with "application/x-www-form-urlencoded" due to payload
RestClient.post "https://microbitfoundation.freshdesk.com/solution/categories/19000083681/folders", "solution_folder[category_id]=19000083681&solution_folder[name]=Getting+Started&solution_folder[description]=&solution_folder[visibility]=1", "Accept"=>"application/json", "Accept-Encoding"=>"gzip ,deflate", "Content-Length"=>"138", "Content-Type"=>"application/x-www-form-urlencoded", "User-Agent"=>"FreshdeskAPI API 0.1.3"
# => 422 UnprocessableEntity | application/json 60 bytes
error: FreshdeskAPI::Error::NetworkError
Traceback (most recent call last):
	19: from /Users/mark/.rbenv/versions/2.5.0/bin/fci:23:in `<main>'
	18: from /Users/mark/.rbenv/versions/2.5.0/bin/fci:23:in `load'
	17: from /Users/mark/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fci-0.0.6/bin/fci:95:in `<top (required)>'
	16: from /Users/mark/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/gli-2.13.0/lib/gli/app_support.rb:83:in `run'
	15: from /Users/mark/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/gli-2.13.0/lib/gli/app_support.rb:309:in `call_command'
	14: from /Users/mark/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/gli-2.13.0/lib/gli/app_support.rb:296:in `block in call_command'
	13: from /Users/mark/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/gli-2.13.0/lib/gli/command_support.rb:126:in `execute'
	12: from /Users/mark/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fci-0.0.6/lib/fci/commands/04_export.rb:34:in `block (2 levels) in <top (required)>'
	11: from /Users/mark/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fci-0.0.6/lib/fci/commands/04_export.rb:34:in `each'
	10: from /Users/mark/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fci-0.0.6/lib/fci/commands/04_export.rb:35:in `block (3 levels) in <top (required)>'
	 9: from /Users/mark/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fci-0.0.6/lib/fci/commands/04_export.rb:35:in `each'
	 8: from /Users/mark/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fci-0.0.6/lib/fci/commands/04_export.rb:68:in `block (4 levels) in <top (required)>'
	 7: from /Users/mark/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fci-0.0.6/lib/fci/commands/04_export.rb:68:in `each'
	 6: from /Users/mark/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fci-0.0.6/lib/fci/commands/04_export.rb:110:in `block (5 levels) in <top (required)>'
	 5: from /Users/mark/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/freshdesk_api-0.1.3/lib/freshdesk_api/actions.rb:91:in `create!'
	 4: from /Users/mark/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/freshdesk_api-0.1.3/lib/freshdesk_api/actions.rb:91:in `tap'
	 3: from /Users/mark/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/freshdesk_api-0.1.3/lib/freshdesk_api/actions.rb:92:in `block in create!'
	 2: from /Users/mark/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/freshdesk_api-0.1.3/lib/freshdesk_api/actions.rb:61:in `save!'
	 1: from /Users/mark/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/freshdesk_api-0.1.3/lib/freshdesk_api/client.rb:58:in `make_request!'
/Users/mark/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/freshdesk_api-0.1.3/lib/freshdesk_api/client.rb:75:in `rescue in make_request!': FreshdeskAPI::Error::NetworkError (FreshdeskAPI::Error::ClientError)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.