Skip to content
This repository has been archived by the owner on Nov 29, 2020. It is now read-only.

Error: Bad Hmac #5

Closed
forivall opened this issue Apr 20, 2015 · 4 comments
Closed

Error: Bad Hmac #5

forivall opened this issue Apr 20, 2015 · 4 comments

Comments

@forivall
Copy link

Thanks for solving #3, now I'm getting a different error.

[YCM-CONSOLE] 2015-04-20 10:47:13,872 - INFO - Dropping request with bad HMAC.
    /home/forivall/.atom/packages/you-complete-me/lib/ycm-handler.coffee:97 
[YCM-ERROR] Error: Bad Hmac {stack: (...), message: "Bad Hmac"}
    /home/forivall/.atom/packages/you-complete-me/lib/ycm-handler.coffee:225

[YCM-ERROR] TypeError: Cannot read property 'completions' of undefined {stack: (...), message: "Cannot read property 'completions' of undefined"}
    /home/forivall/.atom/packages/you-complete-me/lib/ycm-provider.coffee:159

This occurs on every keystroke.

Is there some kind of config that needs to be set for ycm?

@Qusic
Copy link
Owner

Qusic commented Apr 20, 2015

Try updating ycm to the latest version.

On 21 Apr, 2015, at 01:56, Jordan Klassen notifications@github.com wrote:

Thanks for solving #3, now I'm getting a different error.

[YCM-CONSOLE] 2015-04-20 10:47:13,872 - INFO - Dropping request with bad HMAC.
/home/forivall/.atom/packages/you-complete-me/lib/ycm-handler.coffee:97
[YCM-ERROR] Error: Bad Hmac {stack: (...), message: "Bad Hmac"}
/home/forivall/.atom/packages/you-complete-me/lib/ycm-handler.coffee:225

[YCM-ERROR] TypeError: Cannot read property 'completions' of undefined {stack: (...), message: "Cannot read property 'completions' of undefined"}
/home/forivall/.atom/packages/you-complete-me/lib/ycm-provider.coffee:159
This occurs on every keystroke.

Is there some kind of config that needs to be set for ycm? Thanks.


Reply to this email directly or view it on GitHub.

@forivall
Copy link
Author

Yup, that fixed it. I didn't expect ycmd to change that much in one week. 😱
The one other thing that would be nice is if you could enable youcompleteme for only certain languages, unless that's covered by the custom ycm_extra_conf.py. But that's something trivial enough that i could just submit a pull request without a bug report.

@AndiDog
Copy link

AndiDog commented Feb 5, 2016

I'm getting "Bad Hmac" error every time with latest atom-youcompleteme and YCM from https://github.com/Valloric/YouCompleteMe.git at 674db42ee (latest commit). Working fine from vim.

@carlosjoserg
Copy link

Same here, complete output I'm getting is:

Error: Bad Hmac at IncomingMessage.<anonymous> (/home/carlos/.atom/packages/you-complete-me/lib/handler.coffee:180:24) at emitNone (events.js:85:20) at IncomingMessage.emit (events.js:179:7) at endReadableNT (_stream_readable.js:913:12) at _combinedTickCallback (internal/process/next_tick.js:74:11) at process._tickCallback (internal/process/next_tick.js:98:9)

Versions:

  • Ubuntu 16.04
  • Atom 1.9.9
  • ycm plugin 0.7.11
  • ycmd (from synaptics 0+20160327+gitc3e6904-1)
  • default_settings.json by ycmd install

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants