Line 1 column 1 syntax error value object or array expected

I'm using a JSON example off the web, as seen below. { "menu": "File", "commands": [ { "title": "New", "action":"CreateDoc" }, { "title": "O...

I’m using a JSON example off the web, as seen below.

{
  "menu": "File", 
  "commands": [ 
      {
          "title": "New", 
          "action":"CreateDoc"
      }, 
      {
          "title": "Open", 
          "action": "OpenDoc"
      }, 
      {
          "title": "Close",
          "action": "CloseDoc"
      }
   ] 
}

I’ve tried loading this in two different parsers, one in C++ and in Python.

Here’s Python’s traceback.

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.6/json/__init__.py", line 267, in load
    parse_constant=parse_constant, **kw)
  File "/usr/lib/python2.6/json/__init__.py", line 307, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.6/json/decoder.py", line 319, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.6/json/decoder.py", line 338, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

And here’s what jsoncpp reports.

* Line 1, Column 1
  Syntax error: value, object or array expected.

Any clue what I’m doing wrong?

Edit:

Ok, here’s some code. For some reason now Python’s working. I didn’t do anything but go to the store. That must be a Python feature — goto the store, random errors go away. Those Python devs are geniuses.

But to the point. Here’s the C++ code.

bool CFG::CFG_Init( const char* path ) {
    bool r = reader.parse( path, root );
    if( r ) {
        return true;
    } else {
        std::cout << reader.getFormatedErrorMessages() << std::endl;
        return false;
    }
}

I’ve tried this where ‘path’ was a std::string as well — same thing. I’m calling the method like this:

if( !CFG_Init("test.json") ) {
    error("Couldn't load configuration.");
}

And here’s the class.

class CFG: virtual Evaluator {
    Json::Reader reader;
    public:
    Json::Value root;
    bool CFG_Init( const char* path);
    Json::Value CFG_Fetch_Raw(Json::Value section, std::string key, Json::Value defval);
    Json::Value CFG_Fetch(Json::Value section, std::string key, Json::Value defval );
};

Содержание

  1. Parsing error? * Line 1, Column 1 Syntax error: value, object or array expected. #55
  2. Comments
  3. can’t parse json #922
  4. Comments
  5. Footer
  6. Код не компилируется в nodejs, выдает непредвиденную ошибку (Web3.js)
  7. Другие вопросы по теме
  8. Похожие вопросы
  9. proxy offline and can’t connect about t-rex HOT 5 CLOSED
  10. Comments (5)

Parsing error? * Line 1, Column 1 Syntax error: value, object or array expected. #55

On download/status I get the following message:
«* Line 1, Column 1
Syntax error: value, object or array expected.»

It worked fine at the start of the summer sale, but I noticed this problem yesterday using v2.23 and it continued when I changed to c4c2f8c.
Debug build shows all the game info is there in a massive block of JSON so it seems like a parsing error.

The text was updated successfully, but these errors were encountered:

Not saying this is the same issue, but. I’m getting the same error message, until I run lgogdownloader —login (and supply credentials). Which lasts about an hour, after which I have to login again. Didn’t try debug build yet, but you can see if it helps in your case.

I’ve been seeing the same problem for a while but didn’t have time to diagnose and, since —download-file still works, I assumed it was a shelf-parsing bug.

—login seems to have fixed it for now. I had meant to try that, but when debug showed me a list of all my games I figured I had to be logged in! I won’t close this just yet though as it sounds like more of a workaround than a fix.

My workaround is going to be updating my lgogd_uri frontend to acknowledge that GOG’s new design added gogdownloader:// links for the Linux versions, so I can use —download-file for everything rather than detecting non-extra links and converting them to —download regexes.

In 84e8ab8 the downloader now assumes that failed JSON parsing in Downloader::getGames is caused by expired cookies and tells the user to try —login

Sometimes GOG seems to set the cookies to expire really soon.
There were some threads earlier about people getting logged out after a short time when using browser which I assume was caused by the cookies expiring. Can’t find the threads now though because the forum search sucks on GOG.

You can check when the cookies are set to expire by using something like this after login

It’s a major hassle to copy-paste my GOG username and password from my password manager every time lgogdownloader needs to re-login. Would it be possible for lgogdownloader to support saving a copy of the username and password for automatic re-login?

(Or do I have to jerry rig such a thing myself by wrapping lgogdownloader in a pexpect script which embeds my username and password and calls lgogdownloader with —login before running it with the actual intended arguments?)

Looks like I misread that json block, so this was probably it. I’ll close it. Thanks!

It’s a major hassle to copy-paste my GOG username and password from my password manager every time lgogdownloader needs to re-login. Would it be possible for lgogdownloader to support saving a copy of the username and password for automatic re-login?

(Or do I have to jerry rig such a thing myself by wrapping lgogdownloader in a pexpect script which embeds my username and password and calls lgogdownloader with —login before running it with the actual intended arguments?)

Create $XDG_CONFIG_HOME/lgogdownloader/autologin.cfg to use automatic login

Are there any issues with this patch?

I’m not sure autologin is such a good idea from security perspective, but as long as it stays optional.

There must be a way to obtain long-term token, Galaxy doesn’t prompt me for password every time I boot my gaming console^W^W Windows PC. Maybe it just stores the username/password, but even browser doesn’t require me to login when I allow gog.com cookies to last longer than for session. Even after long inactivity.

I guess sometimes it’s just easier to work around the issue.

Sorry for the delay. I’m still making preparations for my last exam. I’ll try to get that patch tested tonight.

It seems to be working. I’ll let you know whether any problems show up while it’s downloading the Trine: Enchanted Edition updates.

Nothing to complain about so far. The Windows installer and patch and the tarball downloaded without issue.

It appers that I have manged to fix this issue, without using autologin. I got tired looking through the mess, so I just deleted my cookie file completely and let lgogdownloader start again from clean state. There was lot of old/unused/most likely broken stuff in there, now there is only about half of them, they expire in a year and everything works like before. Lgogdownloader should probably do the same with —login, I doubt there is any information in there that should persist between logins.

It appers that I have manged to fix this issue, without using autologin. I got tired looking through the mess, so I just deleted my cookie file completely and let lgogdownloader start again from clean state. There was lot of old/unused/most likely broken stuff in there, now there is only about half of them, they expire in a year and everything works like before. Lgogdownloader should probably do the same with —login, I doubt there is any information in there that should persist between logins.

Old cookies are now deleted in 6e5a087

Источник

can’t parse json #922

Hi
I hava a problem right now,i try to checked it everywhere,but don’t know what the problem comes from.
what ever i used -u + -p or -u + -p + -w,or just use ip,the problem is the same.

/coding/t-rex-0.24.8-linux$ ./t-rex -a ethash -o ethproxy+tcp://eth.ss.poolin.me:443 -u gpupool002 -p x -w 001
20211211 23:39:07 T-Rex NVIDIA GPU miner v0.24.8 — [Linux]
20211211 23:39:07 r.24882b3a9e07
20211211 23:39:07
20211211 23:39:07
20211211 23:39:07 NVIDIA Driver v440.95.01
20211211 23:39:07
20211211 23:39:07 + GPU #0: [00:65.0|1e81] GeForce RTX 2080 SUPER, 7979 MB
20211211 23:39:07
20211211 23:39:07 WARN: DevFee 1% (ethash)
20211211 23:39:07
20211211 23:39:07 URL : ethproxy+tcp://eth.ss.poolin.me:443
20211211 23:39:07 USER: gpupool002
20211211 23:39:07 PASS: x
20211211 23:39:07 WRK : 001
20211211 23:39:07
20211211 23:39:07 Starting on: eth.ss.poolin.me:443
20211211 23:39:07 ApiServer: HTTP server started on 127.0.0.1:4067
20211211 23:39:07 —————————————————
20211211 23:39:07 For control navigate to: http://127.0.0.1:4067/trex
20211211 23:39:07 —————————————————
20211211 23:39:07 GPU #0: intensity 22
20211211 23:39:08 Using protocol: stratum1.
20211211 23:39:08 Authorizing.
20211211 23:39:08 WARN: failed to ethproxy-subscribe on eth.ss.poolin.me:443: can’t parse json:

  • Line 1, Column 1
    Syntax error: value, object or array expected.

The text was updated successfully, but these errors were encountered:

./t-rex -a ethash -o ethproxy+tcp://eth.ss.poolin.me:443 -u gpupool002 -p x -w 001

This exact line is working for me. Check your firewall settings.

i try to use ./t-rex -a ethash -o stratum+tcp://eth.ss.poolin.me:443 -u gpupool002.001 -p x —no-sni —dns-https-server 1.1.1.1

20211212 20:52:32 Starting on: eth.ss.poolin.me:443
20211212 20:52:32 ApiServer: HTTP server started on 127.0.0.1:4067
20211212 20:52:32 —————————————————
20211212 20:52:32 For control navigate to: http://127.0.0.1:4067/trex
20211212 20:52:32 —————————————————
20211212 20:52:32 WARN: Can’t connect to the mining pool, can’t resolve URL via 1.1.1.1:443 (DoH), HTTP status code 0
20211212 20:52:32 ERROR: No connection with eth.ss.poolin.me:443, retry after 10 seconds
20211212 20:52:33 GPU #0: intensity 22
20211212 20:52:42 WARN: Can’t connect to the mining pool, can’t resolve URL via 1.1.1.1:443 (DoH), HTTP status code 0

is the firewall’s problem?

looks like it is

© 2023 GitHub, Inc.

You can’t perform that action at this time.

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

Источник

Код не компилируется в nodejs, выдает непредвиденную ошибку (Web3.js)

Я пробовал следовать этому репо: —

Но при компиляции кода я получаю следующую ошибку: —

Это выдает эту ошибку: —

Вам лучше перейти на репо, чтобы открыть там вопрос. (Полагаю, вы уже проверили открытые вопросы)

Привет, @Izio, я открыл проблему, но похоже, что разработчик неактивен в течение нескольких дней. Будем признательны за быструю помощь. Спасибо

Что такое переменная code ? Если это какой-то файл sol, то как вы его читали?

Также, поскольку компиляция выполняется Solidity, почему бы вам не погуглить google.com/….

Привет, @Molda, я обновил код, пожалуйста, изучите его. Я погуглил, но не нашел подходящего ответа. Спасибо

Функция компиляции принимает разные аргументы в зависимости от того, какая у вас версия. Обязательно проверьте документацию github.com/ethereum/solc-js#readme

Вы как-то решили это? У меня точно такая же проблема.

Я был занят, так как несколько дней возобновятся сегодня. Нет, я пока не нашел для этого решения.

Привет, @BananaCake, я нашел ответ. Пожалуйста, проверьте ниже.

@abhinayak Спасибо, но не могли бы вы подробнее рассказать о конфликте npm и solc?

@abhinayak Я не следую руководству, поэтому у меня нет файла package.json. У меня есть только HelloWorld.sol с кодом Solidity, и я получаю эту ошибку всякий раз, когда хочу ее скомпилировать.

эй, @BananaCake, это из-за проблем с версией пакета. попробуйте сопоставить версию пакета, как показано в руководстве.

@abhinayak Я нашел другое решение, которое работает для меня и солидность 0.5.1. Проверьте мой ответ.

Вы должны указать, какой тип кодировки используется для файла Solidity.

и вы должны указать количество контрактов, которые вы собираетесь составить.

указав номер контракта, выдает ошибку AssertionError

Я узнал, что это из-за конфликтов версий npm. Убедитесь, что у вас правильная версия solc. См. Этот репо

Нашел другое решение. В моем случае проблема заключалась в том, что File.sol был смарт-контрактом с необработанной твердостью, но вам нужно поместить Compiler Standard Input JSON в solc.compile() . Это работает для Solidity 0.5.1. В эта ветка идет весь мой процесс, шаг за шагом, до отправки транзакции.

Я обнаружил, что если вы поместите свою входную информацию в формат JSON в соответствии с документами Solidity, тогда все будет хорошо независимо от компилятора. Перед компиляцией «стрингифицируйте» файл (JSON.stringify). После компиляции файла объект будет в строковой форме, поэтому вы можете проанализировать его (JSON.parse), чтобы работать с ним оттуда. Вот пример кода с console.log () контракта в форме JSON, чтобы вы могли видеть, с чем вы работаете.

Это помогло мне: может потребоваться больше кода, но не нужно возиться с версиями компилятора.

NYC Tech Engineer

Версия solc и ваш контракт должны совпадать.

Например, если в вашем контракте используется pragma solidity ^0.4.18; , вам следует установить ту же версию solc с использованием npm install solc@0.4.18 .

Это фактическое разрешение сообщения об ошибке. Обе версии Solc и наше объявление прагмы в контракте должны быть одинаковыми или, по крайней мере, совместимыми.

Я тоже столкнулся с той же проблемой. Загрузите и проверьте, установлена ​​ли правильная версия версии solc, иначе вы получите ошибку. Я не указал версию для загрузки, она загрузила версию по умолчанию.

npm install —save solc@0.4.17 (specify the version)

Johnny Antony . P

Другие вопросы по теме

Похожие вопросы

Находите ответы на сложные технические вопросы по программированию, с которыми сталкиваются инженеры по всему миру в своей ежедневной практике на сайте RedDeveloper.

Источник

proxy offline and can’t connect about t-rex HOT 5 CLOSED

it works ok after I add —no-strict-ssl

trexminer commented on January 15, 2023

Please post the log file. Thanks.

thecxj commented on January 15, 2023

20211229 12:53:09 T-Rex NVIDIA GPU miner v0.24.8 — [Windows]
20211229 12:53:09 r.24882b3a9e07
20211229 12:53:09
20211229 12:53:09
20211229 12:53:09 NVIDIA Driver v471.68
20211229 12:53:09
20211229 12:53:09 + GPU #0: [00:01.0|2489] Gigabyte GeForce RTX 3060 Ti, 8192 MB
20211229 12:53:09 + GPU #1: [00:04.0|2489] Gigabyte GeForce RTX 3060 Ti, 8192 MB
20211229 12:53:09 + GPU #2: [00:05.0|2489] Gigabyte GeForce RTX 3060 Ti, 8192 MB
20211229 12:53:09 + GPU #3: [00:06.0|2489] Gigabyte GeForce RTX 3060 Ti, 8192 MB
20211229 12:53:09 + GPU #4: [00:07.0|2489] Gigabyte GeForce RTX 3060 Ti, 8192 MB
20211229 12:53:09
20211229 12:53:09 WARN: DevFee 1% (ethash)
20211229 12:53:09
20211229 12:53:09 URL : stratum+ssl://asia1.ethermine.org:5555
20211229 12:53:09 USER: 0xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20211229 12:53:09 PASS:
20211229 12:53:09 WRK : LHR04
20211229 12:53:09
20211229 12:53:09 WARN: Temperature limit is activated. Limit is set to 70C.
20211229 12:53:09
20211229 12:53:09 Starting on: asia1.ethermine.org:5555 via proxy: 0.0.0.0:0000
20211229 12:53:09 WARN: API server is not bound to 127.0.0.1, consider setting up API key (see —api-key)
20211229 12:53:09 ApiServer: HTTP server started on 0.0.0.0:10086
20211229 12:53:09 ———————————————————
20211229 12:53:09 For control navigate to: http://192.168.10.84:10086/trex
20211229 12:53:09 ———————————————————
20211229 12:53:10 Using protocol: stratum1.
20211229 12:53:10 Authorizing.
20211229 12:53:10 WARN: failed to ethproxy-subscribe on asia1.ethermine.org:5555: can’t parse json:

  • Line 1, Column 1
    Syntax error: value, object or array expected.

20211229 12:53:10 ERROR: No connection with asia1.ethermine.org:5555, retry after 10 seconds
20211229 12:53:10 GPU #0: intensity 21.3, fan 85%, mclock 1200MHz, pl 90%, core clock locked 1410MHz
20211229 12:53:10 GPU #1: intensity 21.3, fan 90%, mclock 1200MHz, pl 90%, core clock locked 1410MHz
20211229 12:53:10 GPU #2: intensity 21.3, fan 80%, mclock 1200MHz, pl 90%, core clock locked 1410MHz
20211229 12:53:10 GPU #3: intensity 21.3, fan 80%, mclock 1200MHz, pl 90%, core clock locked 1410MHz
20211229 12:53:10 GPU #4: intensity 21.3, fan 90%, mclock 1200MHz, pl 90%, core clock locked 1410MHz
20211229 12:53:20 Using protocol: stratum1.
20211229 12:53:20 Authorizing.
20211229 12:53:20 WARN: failed to ethproxy-subscribe on asia1.ethermine.org:5555: can’t parse json:

  • Line 1, Column 1
    Syntax error: value, object or array expected.

20211229 12:53:20 ERROR: No connection with asia1.ethermine.org:5555, retry after 10 seconds
20211229 12:53:30 Using protocol: stratum1.
20211229 12:53:30 Authorizing.
20211229 12:53:30 WARN: failed to ethproxy-subscribe on asia1.ethermine.org:5555: can’t parse json:

  • Line 1, Column 1
    Syntax error: value, object or array expected.

Источник

I’m using a JSON example off the web, as seen below.

{
  "menu": "File", 
  "commands": [ 
      {
          "title": "New", 
          "action":"CreateDoc"
      }, 
      {
          "title": "Open", 
          "action": "OpenDoc"
      }, 
      {
          "title": "Close",
          "action": "CloseDoc"
      }
   ] 
}

I’ve tried loading this in two different parsers, one in C++ and in Python.

Here’s Python’s traceback.

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.6/json/__init__.py", line 267, in load
    parse_constant=parse_constant, **kw)
  File "/usr/lib/python2.6/json/__init__.py", line 307, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.6/json/decoder.py", line 319, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.6/json/decoder.py", line 338, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

And here’s what jsoncpp reports.

* Line 1, Column 1
  Syntax error: value, object or array expected.

Any clue what I’m doing wrong?

Edit:

Ok, here’s some code. For some reason now Python’s working. I didn’t do anything but go to the store. That must be a Python feature — goto the store, random errors go away. Those Python devs are geniuses.

But to the point. Here’s the C++ code.

bool CFG::CFG_Init( const char* path ) {
    bool r = reader.parse( path, root );
    if( r ) {
        return true;
    } else {
        std::cout << reader.getFormatedErrorMessages() << std::endl;
        return false;
    }
}

I’ve tried this where ‘path’ was a std::string as well — same thing. I’m calling the method like this:

if( !CFG_Init("test.json") ) {
    error("Couldn't load configuration.");
}

And here’s the class.

class CFG: virtual Evaluator {
    Json::Reader reader;
    public:
    Json::Value root;
    bool CFG_Init( const char* path);
    Json::Value CFG_Fetch_Raw(Json::Value section, std::string key, Json::Value defval);
    Json::Value CFG_Fetch(Json::Value section, std::string key, Json::Value defval );
};

can’t parse json #922

Comments

jamesonypy commented Dec 11, 2021

Hi
I hava a problem right now,i try to checked it everywhere,but don’t know what the problem comes from.
what ever i used -u + -p or -u + -p + -w,or just use ip,the problem is the same.

/coding/t-rex-0.24.8-linux$ ./t-rex -a ethash -o ethproxy+tcp://eth.ss.poolin.me:443 -u gpupool002 -p x -w 001
20211211 23:39:07 T-Rex NVIDIA GPU miner v0.24.8 — [Linux]
20211211 23:39:07 r.24882b3a9e07
20211211 23:39:07
20211211 23:39:07
20211211 23:39:07 NVIDIA Driver v440.95.01
20211211 23:39:07
20211211 23:39:07 + GPU #0: [00:65.0|1e81] GeForce RTX 2080 SUPER, 7979 MB
20211211 23:39:07
20211211 23:39:07 WARN: DevFee 1% (ethash)
20211211 23:39:07
20211211 23:39:07 URL : ethproxy+tcp://eth.ss.poolin.me:443
20211211 23:39:07 USER: gpupool002
20211211 23:39:07 PASS: x
20211211 23:39:07 WRK : 001
20211211 23:39:07
20211211 23:39:07 Starting on: eth.ss.poolin.me:443
20211211 23:39:07 ApiServer: HTTP server started on 127.0.0.1:4067
20211211 23:39:07 —————————————————
20211211 23:39:07 For control navigate to: http://127.0.0.1:4067/trex
20211211 23:39:07 —————————————————
20211211 23:39:07 GPU #0: intensity 22
20211211 23:39:08 Using protocol: stratum1.
20211211 23:39:08 Authorizing.
20211211 23:39:08 WARN: failed to ethproxy-subscribe on eth.ss.poolin.me:443: can’t parse json:

  • Line 1, Column 1
    Syntax error: value, object or array expected.

The text was updated successfully, but these errors were encountered:

trexminer commented Dec 12, 2021

./t-rex -a ethash -o ethproxy+tcp://eth.ss.poolin.me:443 -u gpupool002 -p x -w 001

This exact line is working for me. Check your firewall settings.

jamesonypy commented Dec 12, 2021 •

i try to use ./t-rex -a ethash -o stratum+tcp://eth.ss.poolin.me:443 -u gpupool002.001 -p x —no-sni —dns-https-server 1.1.1.1

20211212 20:52:32 Starting on: eth.ss.poolin.me:443
20211212 20:52:32 ApiServer: HTTP server started on 127.0.0.1:4067
20211212 20:52:32 —————————————————
20211212 20:52:32 For control navigate to: http://127.0.0.1:4067/trex
20211212 20:52:32 —————————————————
20211212 20:52:32 WARN: Can’t connect to the mining pool, can’t resolve URL via 1.1.1.1:443 (DoH), HTTP status code 0
20211212 20:52:32 ERROR: No connection with eth.ss.poolin.me:443, retry after 10 seconds
20211212 20:52:33 GPU #0: intensity 22
20211212 20:52:42 WARN: Can’t connect to the mining pool, can’t resolve URL via 1.1.1.1:443 (DoH), HTTP status code 0

is the firewall’s problem?

trexminer commented Dec 12, 2021

looks like it is

Footer

© 2023 GitHub, Inc.

You can’t perform that action at this time.

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

Источник

Parsing error? * Line 1, Column 1 Syntax error: value, object or array expected. #55

Comments

d7415 commented Jun 30, 2015

On download/status I get the following message:
«* Line 1, Column 1
Syntax error: value, object or array expected.»

It worked fine at the start of the summer sale, but I noticed this problem yesterday using v2.23 and it continued when I changed to c4c2f8c.
Debug build shows all the game info is there in a massive block of JSON so it seems like a parsing error.

The text was updated successfully, but these errors were encountered:

huancz commented Jun 30, 2015

Not saying this is the same issue, but. I’m getting the same error message, until I run lgogdownloader —login (and supply credentials). Which lasts about an hour, after which I have to login again. Didn’t try debug build yet, but you can see if it helps in your case.

ssokolow commented Jun 30, 2015

I’ve been seeing the same problem for a while but didn’t have time to diagnose and, since —download-file still works, I assumed it was a shelf-parsing bug.

d7415 commented Jun 30, 2015

—login seems to have fixed it for now. I had meant to try that, but when debug showed me a list of all my games I figured I had to be logged in! I won’t close this just yet though as it sounds like more of a workaround than a fix.

ssokolow commented Jun 30, 2015

My workaround is going to be updating my lgogd_uri frontend to acknowledge that GOG’s new design added gogdownloader:// links for the Linux versions, so I can use —download-file for everything rather than detecting non-extra links and converting them to —download regexes.

Sude- commented Jul 1, 2015

In 84e8ab8 the downloader now assumes that failed JSON parsing in Downloader::getGames is caused by expired cookies and tells the user to try —login

Sometimes GOG seems to set the cookies to expire really soon.
There were some threads earlier about people getting logged out after a short time when using browser which I assume was caused by the cookies expiring. Can’t find the threads now though because the forum search sucks on GOG.

You can check when the cookies are set to expire by using something like this after login

ssokolow commented Jul 1, 2015

It’s a major hassle to copy-paste my GOG username and password from my password manager every time lgogdownloader needs to re-login. Would it be possible for lgogdownloader to support saving a copy of the username and password for automatic re-login?

(Or do I have to jerry rig such a thing myself by wrapping lgogdownloader in a pexpect script which embeds my username and password and calls lgogdownloader with —login before running it with the actual intended arguments?)

d7415 commented Jul 1, 2015

Looks like I misread that json block, so this was probably it. I’ll close it. Thanks!

Sude- commented Jul 1, 2015

It’s a major hassle to copy-paste my GOG username and password from my password manager every time lgogdownloader needs to re-login. Would it be possible for lgogdownloader to support saving a copy of the username and password for automatic re-login?

(Or do I have to jerry rig such a thing myself by wrapping lgogdownloader in a pexpect script which embeds my username and password and calls lgogdownloader with —login before running it with the actual intended arguments?)

Create $XDG_CONFIG_HOME/lgogdownloader/autologin.cfg to use automatic login

Are there any issues with this patch?

huancz commented Jul 1, 2015

I’m not sure autologin is such a good idea from security perspective, but as long as it stays optional.

There must be a way to obtain long-term token, Galaxy doesn’t prompt me for password every time I boot my gaming console^W^W Windows PC. Maybe it just stores the username/password, but even browser doesn’t require me to login when I allow gog.com cookies to last longer than for session. Even after long inactivity.

I guess sometimes it’s just easier to work around the issue.

ssokolow commented Jul 2, 2015

Sorry for the delay. I’m still making preparations for my last exam. I’ll try to get that patch tested tonight.

ssokolow commented Jul 4, 2015

It seems to be working. I’ll let you know whether any problems show up while it’s downloading the Trine: Enchanted Edition updates.

ssokolow commented Jul 4, 2015

Nothing to complain about so far. The Windows installer and patch and the tarball downloaded without issue.

huancz commented Jul 5, 2015

It appers that I have manged to fix this issue, without using autologin. I got tired looking through the mess, so I just deleted my cookie file completely and let lgogdownloader start again from clean state. There was lot of old/unused/most likely broken stuff in there, now there is only about half of them, they expire in a year and everything works like before. Lgogdownloader should probably do the same with —login, I doubt there is any information in there that should persist between logins.

Sude- commented Jul 6, 2015

It appers that I have manged to fix this issue, without using autologin. I got tired looking through the mess, so I just deleted my cookie file completely and let lgogdownloader start again from clean state. There was lot of old/unused/most likely broken stuff in there, now there is only about half of them, they expire in a year and everything works like before. Lgogdownloader should probably do the same with —login, I doubt there is any information in there that should persist between logins.

Old cookies are now deleted in 6e5a087

Источник

Start ver 16 on W10 — mining and write ‘Got invalid Json message’ #1291

Comments

Nikolaev-Nikolay commented Jun 22, 2018

Start ver 16 on W10 — mining and write ‘Got invalid Json message’ and new connect.
Mining -yes, power-yes, server is not respond answer?! WTF?!

Claymore 11.7 is job gut.

The text was updated successfully, but these errors were encountered:

Nikolaev-Nikolay commented Jun 22, 2018

void EthStratumClient::onRecvSocketDataCompleted(const boost::system::error_code& ec, std::size_t bytes_transferred) <

AndreaLanfranchi commented Jun 22, 2018

Please post full launch command with all arguments.

Nikolaev-Nikolay commented Jun 22, 2018

Thanks for answer!

set GPU_FORCE_64BIT_PTR=0
set GPU_MAX_HEAP_SIZE=100
set GPU_USE_SYNC_OBJECTS=1
set GPU_MAX_ALLOC_PERCENT=100
set GPU_SINGLE_ALLOC_PERCENT=100
ethminer.exe -U —HWMON=1 —farm-recheck 200 —cl-local-work 128 —cl-global-work 16384 stratum1+tcp://8ac286ae23f2cbba7bb5b9c5715ff5a7f903c2d@eth-ru2.dwarfpool.com:8008/nngeo
pause

write ‘Got invalid Json message :’* Line 1, Column 1
Syntax error: value, object or array expected.

1060x6G — 2
1070x8G -1
1070Ti x 8G -1

AndreaLanfranchi commented Jun 22, 2018

This happens immediately after start ?
No other log lines ?

AndreaLanfranchi commented Jun 22, 2018 •

Are you sure you have entered your ether address correctly ?
It should begin with 0x while your’s begins with 8a

Nikolaev-Nikolay commented Jun 22, 2018

OMG! This is ZEC!
Gut! Thanks .
Everything works! My inattention!

Nikolaev-Nikolay commented Jun 22, 2018 •

off topic. will notify if there is a possibility of code (project) where there is a calculation equihash? How do you think it can be done in FPGA? I’ve been programming in Verilog I want to try to do it. What do you think of the A9 ZMaster 50 к sol/sec ?!

AndreaLanfranchi commented Jun 23, 2018

off topic. will notify if there is a possibility of code (project) where there is a calculation equihash? How do you think it can be done in FPGA?

Please join our gitter channel for this.

Footer

© 2023 GitHub, Inc.

You can’t perform that action at this time.

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

Источник

Cant Login. #12

Comments

nogarth commented Apr 13, 2014

there seems to be an issue that has appeared today. when i try to log in now is says

HTTP response code said error

  • Line 1, Column 1
    Syntax error: value, object or array expected.
    HTTP: Login failed

this was happening before when i was trying to update my collection with lgogdownloader as well.

i am using the current git version and been working all week till now. unsure if gog have changed something there end.

The text was updated successfully, but these errors were encountered:

Sude- commented Apr 13, 2014

It looks like GOG changed something and the POST redirect in login form now returns error code 401 or 403.
Does 018a056 fix this?

nogarth commented Apr 13, 2014

no still same error

Sude- commented Apr 13, 2014

build a debug build and try to login with it

I’m interested to know what the downloader gets as response from GOG.
It should be something like this

nogarth commented Apr 13, 2014

  • Line 1, Column 1
    Syntax error: value, object or array expected.
    HTTP: Login failed

Ive removed my username and email address

Sude- commented Apr 13, 2014

I’m assuming that for some reason the downloader fails to get JSON from GOG
Try e491c06 it should give more verbose error message.

nogarth commented Apr 13, 2014

HTTP response code said error
HTTP ERROR: 503
DEBUG INFO (Downloader::HTTP_Login)

  • Line 1, Column 1
    Syntax error: value, object or array expected.
    HTTP: Login failed

nogarth commented Apr 13, 2014

hope that helps a bit more

Sude- commented Apr 13, 2014

503 Service Unavailable
The server is currently unavailable (because it is overloaded or down for maintenance). Generally, this is a temporary state.

It seems like that this is a problem on the server side.
Others have also had some problems with login recently: https://secure.gog.com/forum/general/login_problem_1/page1
Wait a few hours and try to login again.

edit:
I would be interested in the details with —login —verbose if it’s still a problem after few hours
normal build is fine for this, just remove any cookie details and oauth tokens from the output

nogarth commented Apr 14, 2014

yup seems to be working now. cheers

nogarth commented Apr 14, 2014

This is what i get using the —login —verbose. Seems like the 503 error is appearing again as it did work about 9 uk time but dropped again.

Sude- commented Apr 14, 2014

I don’t see anything out of the ordinary in there. Only the 503 error returned by server.
78fe112 now uses secure.gog.com to get «buk» for login form. Perhaps it would work better.

Also try these links in your browser to see if they work or return the same 503 error
http://www.gog.com/user/ajax/?a=get
https://secure.gog.com/user/ajax/?a=get

shakeyourbunny commented Jul 2, 2014

Cannot login with lgogdownloader.

I think they changed something with the login system on their site shortly after the summer sale. I noticed that I was logged out from the site and they have now a different styled login (my credentials work on the web site, but not with lgogdownloader).

lgogdownloader 2.13 git 526aab5 reports (with —login and cleared $HOME/.config/lgogdownloader):
Email: myemail@mail.com Password: HTTP response code said error HTTP: Login failed

lgogdownloader —verbose —login:

The Debug build seems to do the login, but bails out after retrieving the first 50 games, then 23, then 0 (I have about 360 games ..)

Sude- commented Jul 2, 2014

Cannot login with lgogdownloader.

I think they changed something with the login system on their site shortly after the summer sale. I noticed that I was logged out from the site and they have now a different styled login (my credentials work on the web site, but not with lgogdownloader).

lgogdownloader 2.13 git 526aab5 reports (with —login and cleared $HOME/.config/lgogdownloader):

Try the current git, I added support for the new login form in 3dd4a95

jschuck commented Sep 4, 2014

Seems like the problem persists.

It returns with
HTTP: Login failed

I’m using the correct username and password combination, of that i’m sure since i use a password safe anyway. The same error happens on multiple machines this way.

$ lgogdownloader —version
LGOGDownloader 2.17 git 1023329

$ lgogdownloader —verbose —login 1>lgog.log 2>&1

Contents of lgog.log with cookies and tokens removed are in this pastebin:
http://pastebin.com/4S1u9cLs

Sude- commented Sep 4, 2014

I’m using the correct username and password combination, of that i’m sure since i use a password safe anyway. The same error happens on multiple machines this way.

$ lgogdownloader —version
LGOGDownloader 2.17 git 1023329

$ lgogdownloader —verbose —login 1>lgog.log 2>&1

Contents of lgog.log with cookies and tokens removed are in this pastebin:
http://pastebin.com/4S1u9cLs

I just commited a better login check (a5b1840)
Does it work with the new login check?

jschuck commented Sep 4, 2014

Sadly no. Still getting the same error

Sude- commented Sep 4, 2014

Try to login with debug build to see if it can actually find the email or username on the settings page or if it fails somewhere else

jschuck commented Sep 4, 2014

Ok, that brought some valuable info.

The email address i use for the login has a mixed case in my password safe (like: Foo_Bar@somewhere.com), which works perfectly fine on the web page.

Using the debug build it told me that this email didn’t macht the account email, (wich it gave back as foo_bar@somewhere.com). So the error was, that my email wasn’t entered in all lowercase.

If i enter the E-mail completely in lowercase it works perfectly.

Did i overlook something in the manual? If so i apologize for the inconvenience.

Sude- commented Sep 4, 2014

The email address i use for the login has a mixed case in my password safe (like: Foo_Bar@somewhere.com), which works perfectly fine on the web page.

Using the debug build it told me that this email didn’t macht the account email, (wich it gave back as foo_bar@somewhere.com). So the error was, that my email wasn’t entered in all lowercase.

jschuck commented Sep 4, 2014

It does. Works perfectly.

AlexTalker commented Nov 19, 2014

Strange, Arch Linux, git version, lgogdownloader —verbose —login in debug: https://gist.github.com/5805c567de15c493bf67

Why this happens?

antekone commented Nov 19, 2014

Manjaro Linux, git version: HTTP login failed,
FreeBSD, git a6da2e5, HTTP login failed.

I still have old cookies on FreeBSD, and version a6da2e5 lists and downloads games OK, but when I delete those cookies and try to perform login, it says «HTTP: login failed».

Sude- commented Nov 19, 2014

Apparently GOG changed the login process to require two steps for some idiotic reason
fb6c449 should fix this

Sude- commented Nov 19, 2014

Apparently GOG changed the login process to require two steps for some idiotic reason
fb6c449 should fix this

. and apparently it was some website bug and seems to be fixed by GOG.
c5a0a3b reverts the login process back to the old working version

antekone commented Nov 20, 2014

Indeed, it’s working now 🙂

Thanks for this nice tool!

braedenjc commented Jun 18, 2015

I have recently encountered a problem where I cannot login to GOG.com, and am recieving something about certificate errors.

Below is the verbose output:

  • Trying 23.208.232.84.
  • Connected to api.gog.com (23.208.232.84) port 443 (#0)
  • ALPN, offering http/1.1
  • Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@strength
  • successfully set certificate verify locations:
  • CAfile: /etc/ssl/certs/ca-certificates.crt
    CApath: /etc/ssl/certs
  • SSL certificate problem: unable to get local issuer certificate
  • Closing connection 0
  • Rebuilt URL to: oauth_nonce=redacted for this post
    oauth_consumer_key=redacted for this post
    oauth_signature_method=redacted for this post
    oauth_token=redacted for this post
    oauth_signature= redacted for this post
  • Could not resolve host: //Just references the Oauth stuff above.
  • Closing connection 1
    Email: insertloginhere@lol.com
    Password:
  • Trying 23.208.232.84.
  • Connected to www.gog.com (23.208.232.84) port 443 (#0)
  • ALPN, offering http/1.1
  • Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@strength
  • successfully set certificate verify locations:
  • CAfile: /etc/ssl/certs/ca-certificates.crt
    CApath: /etc/ssl/certs
  • SSL certificate problem: unable to get local issuer certificate
  • Closing connection 0
  • Hostname www.gog.com was found in DNS cache
  • Trying 23.208.232.84.
  • Connected to www.gog.com (23.208.232.84) port 443 (

JSON for patches seems to have changed #1 )

  • ALPN, offering http/1.1
  • Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@strength
  • successfully set certificate verify locations:
  • CAfile: /etc/ssl/certs/ca-certificates.crt
    CApath: /etc/ssl/certs
  • SSL certificate problem: unable to get local issuer certificate
  • Closing connection 1
  • Hostname www.gog.com was found in DNS cache
  • Trying 23.208.232.84.
  • Connected to www.gog.com (23.208.232.84) port 443 (

    Fix Downloader::writeData to use streams #2 )

  • ALPN, offering http/1.1
  • Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@strength
  • successfully set certificate verify locations:
  • CAfile: /etc/ssl/certs/ca-certificates.crt
    CApath: /etc/ssl/certs
  • SSL certificate problem: unable to get local issuer certificate
  • Closing connection 2
  • Hostname www.gog.com was found in DNS cache
  • Trying 23.208.232.84.
  • Connected to www.gog.com (23.208.232.84) port 443 (

    —language switch not honored with —status #3 )

  • ALPN, offering http/1.1
  • Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@strength
  • successfully set certificate verify locations:
  • CAfile: /etc/ssl/certs/ca-certificates.crt
    CApath: /etc/ssl/certs
  • SSL certificate problem: unable to get local issuer certificate
  • Closing connection 3
    Peer certificate cannot be authenticated with given CA certificates
    Failed to find url for login form
    Failed to get login token
    HTTP: Login failed
  • To try to remedy, I have deleted the cookie file in my

    .configlgogdownloader. Sadly, this didn’t work.

    I then tried to run the program as root to determine if I had a weird certificate problem on my computer. This did not work either.

    Is there anything else I can try to fix this?

    Источник

    Я использую пример JSON из Интернета, как показано ниже.

    {
      "menu": "File", 
      "commands": [ 
          {
              "title": "New", 
              "action":"CreateDoc"
          }, 
          {
              "title": "Open", 
              "action": "OpenDoc"
          }, 
          {
              "title": "Close",
              "action": "CloseDoc"
          }
       ] 
    }
    

    Я попробовал загрузить это в двух разных синтаксических анализарах: один в С++ и Python.

    Здесь трассировка Python.

    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/usr/lib/python2.6/json/__init__.py", line 267, in load
        parse_constant=parse_constant, **kw)
      File "/usr/lib/python2.6/json/__init__.py", line 307, in loads
        return _default_decoder.decode(s)
      File "/usr/lib/python2.6/json/decoder.py", line 319, in decode
        obj, end = self.raw_decode(s, idx=_w(s, 0).end())
      File "/usr/lib/python2.6/json/decoder.py", line 338, in raw_decode
        raise ValueError("No JSON object could be decoded")
    ValueError: No JSON object could be decoded
    

    И вот что сообщает jsoncpp.

    * Line 1, Column 1
      Syntax error: value, object or array expected.
    

    Любые подсказки, что я делаю неправильно?

    Edit:

    Хорошо, вот какой-то код. По какой-то причине Python работает. Я ничего не делал, кроме как пойти в магазин. Это должна быть функция Python — перейдите в магазин, случайные ошибки исчезнут. Эти разработчики Python являются гениями.

    Но к делу. Здесь код С++.

    bool CFG::CFG_Init( const char* path ) {
        bool r = reader.parse( path, root );
        if( r ) {
            return true;
        } else {
            std::cout << reader.getFormatedErrorMessages() << std::endl;
            return false;
        }
    }
    

    Я пробовал это, когда «путь» был std::string, а также — то же самое. Я вызываю метод следующим образом:

    if( !CFG_Init("test.json") ) {
        error("Couldn't load configuration.");
    }
    

    И вот класс.

    class CFG: virtual Evaluator {
        Json::Reader reader;
        public:
        Json::Value root;
        bool CFG_Init( const char* path);
        Json::Value CFG_Fetch_Raw(Json::Value section, std::string key, Json::Value defval);
        Json::Value CFG_Fetch(Json::Value section, std::string key, Json::Value defval );
    };
    

    Понравилась статья? Поделить с друзьями:

    Читайте также:

  • Line 0 parsing error cannot read properties of undefined reading map
  • Linde t20 коды ошибок
  • Linalgerror schur decomposition solver error
  • Limit in subquery mysql error
  • Limit in sql syntax error

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии