Recent searches


No recent searches

Error when try to run $zat server



Posted Apr 08, 2022

Hi, 

I am trying to create this tutorial https://developer.zendesk.com/documentation/apps/working-with-data/getting-data-from-an-external-application/
I wanted to check if everything is ok before i continue that tutorial, so I ran Zat server and I got this error bellow:

ubuntu@LAP-mohamad-sam:/mnt/c/zendeskapps/Tutorial/crmInfo$ zat server
/home/ubuntu/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/faraday-0.9.2/lib/faraday/options.rb:153:in `new': tried to create Proc object without a block (ArgumentError)
        from /home/ubuntu/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/faraday-0.9.2/lib/faraday/options.rb:153:in `memoized'
        from /home/ubuntu/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/faraday-0.9.2/lib/faraday/options.rb:234:in `<class:ProxyOptions>'
        from /home/ubuntu/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/faraday-0.9.2/lib/faraday/options.rb:216:in `<module:Faraday>'
        from /home/ubuntu/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/faraday-0.9.2/lib/faraday/options.rb:1:in `<top (required)>'
        from <internal:/home/ubuntu/.rbenv/versions/3.0.1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from <internal:/home/ubuntu/.rbenv/versions/3.0.1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from /home/ubuntu/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/faraday-0.9.2/lib/faraday.rb:80:in `block in require_libs'
        from /home/ubuntu/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/faraday-0.9.2/lib/faraday.rb:79:in `each'
        from /home/ubuntu/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/faraday-0.9.2/lib/faraday.rb:79:in `require_libs'
        from /home/ubuntu/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/faraday-0.9.2/lib/faraday.rb:240:in `<module:Faraday>'
        from /home/ubuntu/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/faraday-0.9.2/lib/faraday.rb:16:in `<top (required)>'
        from <internal:/home/ubuntu/.rbenv/versions/3.0.1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from <internal:/home/ubuntu/.rbenv/versions/3.0.1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from /home/ubuntu/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/zendesk_apps_tools-3.8.6/lib/zendesk_apps_tools/deploy.rb:1:in `<top (required)>'
        from <internal:/home/ubuntu/.rbenv/versions/3.0.1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from <internal:/home/ubuntu/.rbenv/versions/3.0.1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from /home/ubuntu/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/zendesk_apps_tools-3.8.6/lib/zendesk_apps_tools/command_helpers.rb:4:in `<top (required)>'
        from <internal:/home/ubuntu/.rbenv/versions/3.0.1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from <internal:/home/ubuntu/.rbenv/versions/3.0.1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from /home/ubuntu/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/zendesk_apps_tools-3.8.6/lib/zendesk_apps_tools/command.rb:6:in `<top (required)>'
        from <internal:/home/ubuntu/.rbenv/versions/3.0.1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from <internal:/home/ubuntu/.rbenv/versions/3.0.1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from /home/ubuntu/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/zendesk_apps_tools-3.8.6/bin/zat:13:in `<top (required)>'
        from /home/ubuntu/.rbenv/versions/3.0.1/bin/zat:23:in `load'
        from /home/ubuntu/.rbenv/versions/3.0.1/bin/zat:23:in `<main>'

 


0

9

9 comments

Attempt to reinstall ruby, and minimization, for me it addressed after reinstallation of Ruby and downsized the form, the rendition currently working for me is 2.6.4
FYI, If you are utilizing Mac then you ought to check the right form you need to utilize. you can observe this data on establishment guide for Zendesk application system.

0


Good luck..

0


i follow all the official installation steps as mentioned  but still got error .

 

thanks to u its  work with 2.6.4 

 

1


Try to reinstall ruby, and downgrade, for me it solved after reinstallation of Ruby and downgraded the version, the version now working for me is 2.6.4
FYI, If you are using Mac then you should check the correct version you have to use. you can find this information on installation guide for Zendesk application framework. 

2


can u please provide a soluion for this i am useing 3.1.0 ruby version 

 

 

error : /Users/anmolsingh/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/faraday-0.9.2/lib/faraday/options.rb:153:in `new': tried to create Proc object without a block (ArgumentError)

0


That's awesome! I'm glad you were able to resolve it and thanks for following up and posting your solution.
 
Best,
 
Erica

-1


Yes, it was the same error.
However, this issue has been solved when i reinstall Ruby on Ubuntu
Thank you.

KR,


Samer

0


Hi Samer,
 
Just for clarity, in your other app when you ran zat server did you receive the same error as well?
 
Best,
 
Erica
 
 

0


Btw, I tried to run another app which was working yesterday with me, but it didn't work as well.

Thank you in advance..

 

0


Sign in to leave a comment.

Didn't find what you're looking for?

New post