ehForwarderBot / efb-qq-slave

EFB QQ Slave, a channel for EH Forwarder Bot. EFB QQ从端
GNU General Public License v3.0
447 stars 48 forks source link

config error? #2

Closed natelindev closed 6 years ago

natelindev commented 6 years ago

When launching efb: It says: yaml.scanner.ScannerError: mapping values are not allowed here in "/root/.ehforwarderbot/profiles/default/milkice.qq/config.yaml", line 4, column 29

I copied your config but it doesn't work, I got wechat working but not this one.

milkice233 commented 6 years ago

Hello, It seems that yaml scanner fails to parse your config file. Please post your config here so that we can help solve the issue. Meanwhile, please delete some sensitive contents(Access Token, for example) before posting.

natelindev commented 6 years ago

my config look like this:

Client: CoolQ                         
CoolQ:
   type: HTTP                        
   access_token: 613aa25a30bb2081ccdb5b1eb8e50c30
   api_root: http://127.0.0.1:4567/  
   host: 127.0.0.1                   
   port: 1234
   is_pro: flase                      
   air_option:                       
       upload_to_smms: true          

access token is a randomly generated 32bit hex number(not the one I'm using)

api root and port was changed accordingly with my docker params.

milkice233 commented 6 years ago

You have a typo in is_pro: flase, but I think this is not the main cause according to the error message. The error message shows line 4 should be blamed for, but after checking your configuration I can't find anything wrong with Line 4. Currently I'm not able to find the syntax error either. However, I've noticed that you use 3 spaces indentation from line 3 to line 9, but 4 spaces indentation instead on line 10, which means there're 7 spaces ahead of upload_to_smms. I'm not sure if this caused the error, but this kind of non-standard syntax should be avoided. Some people have already successfully launched EQS following my documentation, so currently I can assume that the sample configuration of EQS on the documentation works. I suggest you copy my code, save it to config.yaml without modification, and then run ehforwarderbot to see if the same error occurs. If you believe the documentation has something wrong, please comment on this issue and I'll take further inspection into it.

milkice233 commented 6 years ago

And also please use space instead of tabs. Meanwhile, some text editors may silently add extra characters into the code, which isn't accepted by yaml parser.

natelindev commented 6 years ago

Hmmm, I typed the config letter by letter in vim now it's working. Thx

milkice233 commented 6 years ago

Alright, now I shall close this issue