Closed khawala closed 8 months ago
Hi @khawala, Can you please provide a repro case for this issue?
Closing this issue due to inactivity. Please feel free to reopen if the issue still persists.
Hey guys, I've got the same issue. I spent the last 3 days trying to found a solution. I really need help. I'm using the version 2.14.0
I've got an error when I tried to upload a youtube reference file with the Youtube Partner API. I've implemented the code found here https://developers.google.com/youtube/partner/code_samples/php#upload_a_reference last year and it was working. But the last few weeks I started to have error from that code even if I didn't change anything.
I regenerated my refresh_token but still not working and I know that my access_token it's working because the error occurs when I try to upload the file. If my access_token was invalid I would not have able to do the previous steps. I think...
To be more precise the error happened with the nextChunk
function.
The beginning of the error:
After deep debugging I understood that the ScopedAccessTokenMiddleware
is there to set Authorization header, if in the Client config there is that value [auth] = 'scoped'
So I debugged in the __inkove
function to see if it did its job and it does.
As you can see the Authorization header is present.
Any help will be hugely appreciated
The full error
@yash30201 Thank you for reopen it. I was wondering about my full error, should I put in a file instead of a long message ? If yes what kind of file should I use ? Thanks
Hey guys,
Still having the same error (even with the v.2.15.1) but I think is neither the PHP Client library or my code the issue. Below you can see that I'm not the only one having the same issue and people are saying that they didn't change anything in their code too
https://issuetracker.google.com/issues/300280233 https://issuetracker.google.com/issues/300236995
I'll keep an eye of those issues and will let you know if Google answer
I also had the same issue.
Sending the request through the library rather than getting the client and sending yourself is a workaround you could try, this works for me
On Mon, 18 Sep 2023 at 16:52, oolul @.***> wrote:
Hey guys,
Still having the same error (even with the v.2.15.1) but I think is neither the PHP Client library or my code the issue. Below you can see that I'm not the only one having the same issue and people are saying that they didn't change anything in their code too
https://issuetracker.google.com/issues/300280233 https://issuetracker.google.com/issues/300236995
I'll keep an eye of those issues and will let you know if Google answer
— Reply to this email directly, view it on GitHub https://github.com/googleapis/google-api-php-client/issues/2479#issuecomment-1723608661, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAWOZT2VVLQ7Y4ZLZACFOE3X3BN35ANCNFSM6AAAAAA2YBCBQQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Sorry @benrcole I'm not sure to understand what you're suggesting.
I've tried to do it with the library (v2.14.0 and v2.15.1) and it failed. After that I tried to do manual requests myself and still having the same error at the same step of the process and I can tell you that I'm sure that the Authorization header is present on my request.
What I've tried to make sure my access_token was valid is to put a fake one when I try to fetch an asset or update the match policy and it failed so that confirms that my access_token is valid or at least for those endpoints...
Could you be more explicit of what works for you ? And are you doing a reference file upload too ?
Thanks
I’ll reply with an example tomorrow. If I don’t send me a dm
On Mon, 18 Sep 2023 at 17:22, oolul @.***> wrote:
Sorry @benrcole https://github.com/benrcole I'm not sure to understand what you're suggesting.
I've tried to do it with the library (v2.14.0 and v2.15.1) and it failed. After that I tried to do manual requests myself and still having the same error at the same step of the process and I can tell you that I'm sure that the Authorization header is present on my request.
What I've tried to make sure my access_token was valid is to put a fake one when I try to fetch an asset or update the match policy and it failed so that confirms that my access_token is valid or at least for those endpoints...
Could you be more explicit of what works for you ? And are you doing a reference file upload too ?
Thanks
— Reply to this email directly, view it on GitHub https://github.com/googleapis/google-api-php-client/issues/2479#issuecomment-1723696165, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAWOZT6FY4QTYLDFKTZXBY3X3BRKDANCNFSM6AAAAAA2YBCBQQ . You are receiving this because you were mentioned.Message ID: @.***>
Hi @oolul ,
Sorry for the delay in response from my end. I've taken care of the code formatting by placing them in collapsible dropdown so no worries there.
Thanks for pointing the existing bug tickets in issue tracker. I see that those issue got resolved today from the backend engineering team. Can you try it and tell me if this issue is still occuring?
Meanwhile I'll take a look at your repro case and try to see what's happening there.
Hi @yash30201,
Yes I have tested it and it's working again. So all good, definitely something wrong on their side.
It's not my issue but as far I'm concerned you can close that issue. Thanks again for your time.
I'm having the same issue, my code was working and suddendly it started throwing the same error
This may be due to an expired token and not being shown properly. I recently generated a new auth token and after an hour I started having an issue. By default, oauth2 token will expire. At that point you need to use a refresh token Not sure if this is everyone's issue but it was definitely mine
@vpuentem , can you please confirm if refreshing the token solves your problem?
Closing this due to inactivity. Please reopen if the issue still persists.
Hello all I'm trying to reach google analytics scope in order to get the total visitors to my sit but i get this error when I use the json file of Outh 2.0 in the setConfig method
Why this happened i need to know