Skip to content
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

Error lines in the end of sync "request failed due to auth token expired: 401 (body: ). refreshing token exception: /home/kpaxradio/Programs/grive2/libgrive/src/json/JsonParser.cc(165): Throw in function void gr::JsonParser::Parse(const char*, std::size_t)" #388

Open
kpaxradio opened this issue Aug 21, 2023 · 0 comments

Comments

@kpaxradio
Copy link

After running and synchronizing brings these error lines in the end

request failed due to auth token expired: 401 (body: ). refreshing token
exception: /home/kpaxradio/Programs/grive2/libgrive/src/json/JsonParser.cc(165): Throw in function void gr::JsonParser::Parse(const char*, std::size_t)
Dynamic exception type: boost::wrapexceptgr::JsonParser::Error
[gr::expt::BacktraceTag*] = #0 0x5557019a29fe grive gr::Exception::Exception()
#1 0x555701982a67 grive gr::JsonParser::Error::Error()
#2 0x5557019826cb grive gr::JsonParser::Parse(char const*, unsigned long)
#3 0x555701993e8d grive gr::http::ValResponse::Write(char const*, unsigned long)
#4 0x55570197a6c5 grive gr::http::CurlAgent::Receive(void*, unsigned long, unsigned long, gr::http::CurlAgent*)
#5 0x7fa5eb83d5ea /lib/x86_64-linux-gnu/libcurl.so.4
#6 0x7fa5eb850ffa /lib/x86_64-linux-gnu/libcurl.so.4
#7 0x7fa5eb8359c4 /lib/x86_64-linux-gnu/libcurl.so.4
#8 0x7fa5eb836da6 /lib/x86_64-linux-gnu/libcurl.so.4 curl_multi_perform
#9 0x7fa5eb80c10b /lib/x86_64-linux-gnu/libcurl.so.4 curl_easy_perform
#10 0x55570197aa6f grive gr::http::CurlAgent::ExecCurl(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, gr::DataStream*, gr::http::Header const&)
#11 0x55570197aed7 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 0x555701994293 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 0x5557019774bd grive gr::v2::Syncer2::Upload(gr::Resource*, bool)
#14 0x555701975d91 grive gr::v2::Syncer2::Create(gr::Resource*)
#15 0x5557019af9dd grive gr::Resource::SyncSelf(gr::Syncer*, gr::ResourceTree*, gr::Val const&)
#16 0x5557019ae811 grive gr::Resource::Sync(gr::Syncer*, gr::ResourceTree*, gr::Val const&)
#17 0x5557019b4cc3 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
#18 0x5557019b4671 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)
#19 0x5557019b3d5a 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*&)
#20 0x5557019b279b 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 > >)
#21 0x5557019ae8e2 grive gr::Resource::Sync(gr::Syncer*, gr::ResourceTree*, gr::Val const&)
#22 0x5557019b4cc3 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
#23 0x5557019b4671 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)
#24 0x5557019b3d5a 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*&)
#25 0x5557019b279b 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 > >)
#26 0x5557019ae8e2 grive gr::Resource::Sync(gr::Syncer*, gr::ResourceTree*, gr::Val const&)
#27 0x5557019b4cc3 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
#28 0x5557019b4671 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)
#29 0x5557019b3d5a 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*&)
#30 0x5557019b279b 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 > >)
#31 0x5557019ae8e2 grive gr::Resource::Sync(gr::Syncer*, gr::ResourceTree*, gr::Val const&)
#32 0x5557019b4cc3 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
#33 0x5557019b4671 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)
#34 0x5557019b3d5a 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*&)
#35 0x5557019b279b 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 > >)
#36 0x5557019ae8e2 grive gr::Resource::Sync(gr::Syncer*, gr::ResourceTree*, gr::Val const&)
#37 0x5557019681a5 grive gr::State::Sync(gr::Syncer*, gr::Val const&)
#38 0x555701962bcb grive gr::Drive::Update()
#39 0x555701943158 grive Main(int, char**)
#40 0x555701943ace grive main
#41 0x7fa5eae461ca /lib/x86_64-linux-gnu/libc.so.6
#42 0x7fa5eae46285 /lib/x86_64-linux-gnu/libc.so.6 __libc_start_main
#43 0x555701941381 grive _start

[gr::JsonText*] = {
"kind": "drive#file",
"userPermission": {
"id": "me",
"type": "user",
"role": "owner",
"kind": "drive#permission",
"selfLink": "https://www.googleapis.com/drive/v2/files/1ZiwjvrX1RcHw-sFqJ152HUck3I7l9iYU/permissions/me",
"etag": ""kzp0yoBUk-E8bSyoXPvyfgd8lCs"",
"pendingOwner": false
},
"fileExtension": "mp3",
"md5Checksum": "9c95d5c60c4338f7840119e84261e6c4",
"selfLink": "https://www.googleapis.com/drive/v2/files/1ZiwjvrX1RcHw-sFqJ152HUck3I7l9iYU",
"ownerNames": [
"KPAXradio Κοινωνικό ΡΑδιόφωνο Χανίων"
],
"lastModifyingUserName": "KPAXradio Κοινωνικό ΡΑδιόφωνο Χανίων",
"editable": true,
"writersCanShare": true,
"downloadUrl": "https://www.googleapis.comhttps:/drive/v2/files/1ZiwjvrX1RcHw-sFqJ152HUck3I7l9iYU?alt=media&source=downloadUrl",
"mimeType": "audio/mpeg",
"parents": [
{
"selfLink": "https://www.googleapis.com/drive/v2/files/1ZiwjvrX1RcHw-sFqJ152HUck3I7l9iYU/parents/1gVRBX5CnGyoNtSR5IRjAZWEFBoU4tg2N",
"id": "1gVRBX5CnGyoNtSR5IRjAZWEFBoU4tg2N",
"isRoot": false,
"kind": "drive#parentReference",
"parentLink": "h
[gr::ParseErr*] = parse error: trailing garbage
{ "kind": "drive#file", "us
(right here) ------^

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

No branches or pull requests

1 participant