forked from Grive/grive
-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2nd JSON parser exception after refreshing token #293
Comments
Same thing happens here 😟 I'm using Manjaro Linux KDE version
|
I had the same problem after running grive the second time. My current work around is to pass |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I know #13 was fixed long ago, but its showing again in a different way I think (it crashes sync):
request failed due to auth token expired: 401 (body: ). refreshing token
HTTP POST "https://accounts.google.com/o/oauth2/token"
HTTP response 200
HTTP POST "https://www.googleapis.com/drive/v2/files"
exception: /opt/src/grive2/libgrive/src/json/JsonParser.cc(165): Throw in function void gr::JsonParser::Parse(const char*, std::size_t)
Dynamic exception type: boost::exception_detail::clone_implgr::JsonParser::Error
[gr::expt::BacktraceTag*] = #0 0x555f4add17a8 grive gr::Exception::Exception()
1 0x555f4adb324f grive gr::JsonParser::Error::Error()
2 0x555f4adb2eb7 grive gr::JsonParser::Parse(char const*, unsigned long)
3 0x555f4adc4503 grive gr::http::ValResponse::Write(char const*, unsigned long)
4 0x555f4adab0d2 grive gr::http::CurlAgent::Receive(void*, unsigned long, unsigned long, gr::http::CurlAgent*)
5 0x7f5232378bff /usr/lib/x86_64-linux-gnu/libcurl.so.4
6 0x7f523238aea8 /usr/lib/x86_64-linux-gnu/libcurl.so.4
7 0x7f52323943f4 /usr/lib/x86_64-linux-gnu/libcurl.so.4
8 0x7f5232395811 /usr/lib/x86_64-linux-gnu/libcurl.so.4 curl_multi_perform
9 0x7f523238c1ab /usr/lib/x86_64-linux-gnu/libcurl.so.4 curl_easy_perform
10 0x555f4adab474 grive gr::http::CurlAgent::ExecCurl(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, gr::DataStream*, gr::http::Header const&)
11 0x555f4adab8de grive gr::http::CurlAgent::Request(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, gr::SeekStream*, gr::DataStream*, gr::http::Header const&, unsigned long long)
12 0x555f4adc48fe grive gr::AuthAgent::Request(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, gr::SeekStream*, gr::DataStream*, gr::http::Header const&, unsigned long long)
13 0x555f4adaa65c grive gr::http::Agent::Post(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, gr::DataStream*, gr::http::Header const&)
14 0x555f4ada76e2 grive gr::v2::Syncer2::Upload(gr::Resource*, bool)
15 0x555f4ada67c4 grive gr::v2::Syncer2::Create(gr::Resource*)
16 0x555f4adde402 grive gr::Resource::SyncSelf(gr::Syncer*, gr::ResourceTree*, gr::Val const&)
17 0x555f4addd287 grive gr::Resource::Sync(gr::Syncer*, gr::ResourceTree*, gr::Val const&)
18 0x555f4ade35ed grive boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>::operator()(gr::Resource*, gr::Syncer*, gr::ResourceTree*, gr::Val const&) const
19 0x555f4ade2f2c grive void boost::_bi::list4<boost::arg<1>, boost::_bi::valuegr::Syncer*, boost::_bi::valuegr::ResourceTree*, boost::_bi::valuegr::Val >::operator()<boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>, boost::_bi::rrlist1gr::Resource*& >(boost::_bi::type, boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>&, boost::_bi::rrlist1gr::Resource*&&, int)
20 0x555f4ade25e8 grive void boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>, boost::_bi::list4<boost::arg<1>, boost::_bi::valuegr::Syncer*, boost::_bi::valuegr::ResourceTree*, boost::_bi::valuegr::Val > >::operator()gr::Resource*&(gr::Resource*&)
21 0x555f4ade10e7 grive boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>, boost::_bi::list4<boost::arg<1>, boost::_bi::valuegr::Syncer*, boost::_bi::valuegr::ResourceTree*, boost::_bi::valuegr::Val > > std::for_each<__gnu_cxx::__normal_iterator<gr::Resource**, std::vector<gr::Resource*, std::allocatorgr::Resource* > >, boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>, boost::_bi::list4<boost::arg<1>, boost::_bi::valuegr::Syncer*, boost::_bi::valuegr::ResourceTree*, boost::_bi::valuegr::Val > > >(__gnu_cxx::__normal_iterator<gr::Resource**, std::vector<gr::Resource*, std::allocatorgr::Resource* > >, __gnu_cxx::__normal_iterator<gr::Resource**, std::vector<gr::Resource*, std::allocatorgr::Resource* > >, boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>, boost::_bi::list4<boost::arg<1>, boost::_bi::valuegr::Syncer*, boost::_bi::valuegr::ResourceTree*, boost::_bi::valuegr::Val > >)
22 0x555f4addd358 grive gr::Resource::Sync(gr::Syncer*, gr::ResourceTree*, gr::Val const&)
23 0x555f4ade35ed grive boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>::operator()(gr::Resource*, gr::Syncer*, gr::ResourceTree*, gr::Val const&) const
24 0x555f4ade2f2c grive void boost::_bi::list4<boost::arg<1>, boost::_bi::valuegr::Syncer*, boost::_bi::valuegr::ResourceTree*, boost::_bi::valuegr::Val >::operator()<boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>, boost::_bi::rrlist1gr::Resource*& >(boost::_bi::type, boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>&, boost::_bi::rrlist1gr::Resource*&&, int)
25 0x555f4ade25e8 grive void boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>, boost::_bi::list4<boost::arg<1>, boost::_bi::valuegr::Syncer*, boost::_bi::valuegr::ResourceTree*, boost::_bi::valuegr::Val > >::operator()gr::Resource*&(gr::Resource*&)
26 0x555f4ade10e7 grive boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>, boost::_bi::list4<boost::arg<1>, boost::_bi::valuegr::Syncer*, boost::_bi::valuegr::ResourceTree*, boost::_bi::valuegr::Val > > std::for_each<__gnu_cxx::__normal_iterator<gr::Resource**, std::vector<gr::Resource*, std::allocatorgr::Resource* > >, boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>, boost::_bi::list4<boost::arg<1>, boost::_bi::valuegr::Syncer*, boost::_bi::valuegr::ResourceTree*, boost::_bi::valuegr::Val > > >(__gnu_cxx::__normal_iterator<gr::Resource**, std::vector<gr::Resource*, std::allocatorgr::Resource* > >, __gnu_cxx::__normal_iterator<gr::Resource**, std::vector<gr::Resource*, std::allocatorgr::Resource* > >, boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>, boost::_bi::list4<boost::arg<1>, boost::_bi::valuegr::Syncer*, boost::_bi::valuegr::ResourceTree*, boost::_bi::valuegr::Val > >)
27 0x555f4addd358 grive gr::Resource::Sync(gr::Syncer*, gr::ResourceTree*, gr::Val const&)
28 0x555f4ade35ed grive boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>::operator()(gr::Resource*, gr::Syncer*, gr::ResourceTree*, gr::Val const&) const
29 0x555f4ade2f2c grive void boost::_bi::list4<boost::arg<1>, boost::_bi::valuegr::Syncer*, boost::_bi::valuegr::ResourceTree*, boost::_bi::valuegr::Val >::operator()<boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>, boost::_bi::rrlist1gr::Resource*& >(boost::_bi::type, boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>&, boost::_bi::rrlist1gr::Resource*&&, int)
30 0x555f4ade25e8 grive void boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>, boost::_bi::list4<boost::arg<1>, boost::_bi::valuegr::Syncer*, boost::_bi::valuegr::ResourceTree*, boost::_bi::valuegr::Val > >::operator()gr::Resource*&(gr::Resource*&)
31 0x555f4ade10e7 grive boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>, boost::_bi::list4<boost::arg<1>, boost::_bi::valuegr::Syncer*, boost::_bi::valuegr::ResourceTree*, boost::_bi::valuegr::Val > > std::for_each<__gnu_cxx::__normal_iterator<gr::Resource**, std::vector<gr::Resource*, std::allocatorgr::Resource* > >, boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>, boost::_bi::list4<boost::arg<1>, boost::_bi::valuegr::Syncer*, boost::_bi::valuegr::ResourceTree*, boost::_bi::valuegr::Val > > >(__gnu_cxx::__normal_iterator<gr::Resource**, std::vector<gr::Resource*, std::allocatorgr::Resource* > >, __gnu_cxx::__normal_iterator<gr::Resource**, std::vector<gr::Resource*, std::allocatorgr::Resource* > >, boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>, boost::_bi::list4<boost::arg<1>, boost::_bi::valuegr::Syncer*, boost::_bi::valuegr::ResourceTree*, boost::_bi::valuegr::Val > >)
32 0x555f4addd358 grive gr::Resource::Sync(gr::Syncer*, gr::ResourceTree*, gr::Val const&)
33 0x555f4ad98a2f grive gr::State::Sync(gr::Syncer*, gr::Val const&)
34 0x555f4ad9356e grive gr::Drive::Update()
35 0x555f4ad75adf grive Main(int, char**)
36 0x555f4ad762dd grive main
37 0x7f5231a3fbbb /lib/x86_64-linux-gnu/libc.so.6 __libc_start_main
38 0x555f4ad7425a grive _start
[gr::JsonText*] = {
"kind": "drive#file",
"id": "1p....3c",
"etag": ""VU6ak...N...MDkyNA"",
"selfLink": "https://www.googleapis.com/drive/v2/files/1p...3c",
"alternateLink": "https://drive.google.com/drive/folders/1p...3c",
"embedLink": "https://drive.google.com/embeddedfolderview?id=1p...3c",
"iconLink": "https://drive-thirdparty.googleusercontent.com/16/type/application/vnd.google-apps.folder+48",
"title": "C85",
"mimeType": "application/vnd.google-apps.folder",
"labels": {
"starred": false,
"hidden": false,
"trashed": false,
"restricted": false,
"viewed": true
},
"copyRequiresWriterPermission": false,
"createdDate": "2019-12-04T19:02:40.924Z",
"modifiedDate": "2019-12-04T19:02:40.924Z",
"modifiedByMeDate": "2019-12-04T19:02:40.924Z",
"lastViewedByMeDate": "2019-12-04T19:02:40.924Z",
"markedViewedByMeDate": "1970-01-01T00:00:00.000Z",
"version": "1",
"parents": [
{
"kind": "drive#parentReference",
"id": "1U...Da",
"selfLink": "https://www.googleapis.com/drive/v2/files/1p...3c/parents/1U...Da",
"parentLink": "https://www.googleapis.com/drive/v2/files/1U...Da",
"isRoot": false
}
],
"userPermission": {
[gr::ParseErr*] = parse error: trailing garbage
{ "kind": "drive#file", "id":
(right here) ------^
Thank you very for this great tool.
The text was updated successfully, but these errors were encountered: