[vmchecker-request] Probleme vmchecker

Valentin Gosu valentin.gosu at gmail.com
Thu Oct 10 21:25:16 EEST 2013


Fixed!

Din fisierul auth_file.json din /home/ac/vmchecker-storer lipsea linia cu
"auth" : {}

Formatul corect este:

{
    "comment1": "in auth put entries of the type username:password",
    "comment2": "json only accepts DOUBLE QUOTES as string delimiters",
    "auth" : {
       "blabla" : "blabla",
       "blabla1" : "blabla1"
    }
}

Observati ca dupa ultima intrare de tip user:parola lipseste virgula.

Mersi


2013/10/10 Dan Dragomir <dragomir.dan at gmail.com>

> Oops, s-ar putea sa fiu eu. Care e sintaxa?
>
>
> 2013/10/10 Valentin Gosu <valentin.gosu at gmail.com>
>
>> Cel mai probabil cineva a incercat sa adauge utilizatori noi in fisierul
>> json si a gresit sintaxa :)
>>
>> Output-ul la request este acesta:
>>
>> {"errorMessage": "", "errorType": 2, "errorTrace": "Traceback (most recent call last):\n  File \"/home/vmchecker/public_html/services/services.py\", line 564, in login\n    user = websutil.get_user(username, password)\n  File \"/usr/local/lib/python2.6/dist-packages/vmchecker/websutil.py\", line 50, in get_user\n    r = get_user_from_auth_files(username, password)\n  File \"/usr/local/lib/python2.6/dist-packages/vmchecker/websutil.py\", line 61, in get_user_from_auth_files\n    r = get_user_from_auth_file(vmpaths, username, password)\n  File \"/usr/local/lib/python2.6/dist-packages/vmchecker/websutil.py\", line 77, in get_user_from_auth_file\n    auth_dic = json.loads(auth_file_contents)['auth']\nKeyError: 'auth'\n"}
>>
>>
>> O sa ma uit sa vad daca gasesc vinovatul :)
>>
>>
>>
>>
>> 2013/10/10 Mihai Carabas <mihai.carabas at gmail.com>
>>
>>>
>>> Am adăugat vmchecker-request și pe Mihai Carabaș la discuție.
>>>>
>>>> Ieri pe zi mergea. Vali, ai vreo parere  despre problema?
>>>
>>>
>>> _______________________________________________
>>> vmchecker-request mailing list
>>> vmchecker-request at cursuri.cs.pub.ro
>>> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/vmchecker-request
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/vmchecker-request/attachments/20131010/67d45f93/attachment-0001.html>


More information about the vmchecker-request mailing list