Mirror API unauthorized_client - google-mirror-api

I tried creating a new set of API keys in console, only to receive these errors:
An error ocurred: Error refreshing the OAuth2 token, message:
{ "error" : "unauthorized_client" }
'An error ocurred: Error refreshing the OAuth2 token, message:
'{ "error" : "unauthorized_client" }'
Update: Errors from index.php from the php sdk example
Fatal error: Uncaught exception 'Google_AuthException' with message 'Error refreshing the OAuth2 token, message: '{
"error" : "unauthorized_client"
}'' in google-api-php-client/src/auth/Google_OAuth2.php:280
Stack trace:
#0 google-api-php-client/src/auth/Google_OAuth2.php(240): Google_OAuth2->refreshTokenRequest(Array)
#1 google-api-php-client/src/auth/Google_OAuth2.php(217): Google_OAuth2->refreshToken('1/oS0qw-8UsYeFo...')
#2 google-api-php-client/src/service/Google_ServiceResource.php(167): Google_OAuth2->sign(Object(Google_HttpRequest))
#3 google-api-php-client/src/contrib/Google_MirrorService.php(434): Google_ServiceResource->__call('list', Array)
#4 index-demo.php(140): google_TimelineServiceResource->listTimeline(Array)
#5 {main}
thrown in google-api-php-client/src/auth/Google_OAuth2.php on line 280

The most likely cause of this is that the refresh token was generated by a different client id/secret than was used to for the refresh. If you change to a new API key in the console, you need to re-auth users. You cannot refresh tokens created with your old client.

Related

Apple Store product subscribe error with An unknown error occurred

I add an SKU as an auto-renewable subscription on App Store Connect. I have codes below in the main class.
public static final String SKU_TW_1_YEAR="com.visionx.tw.subscribe.1year.2";
Purchas iap = Purchase.getInAppPurchase();
// Define a receipt loader
iap.setReceiptStore(createReceiptStore());
iap.subscribe(SKU_TW_1_YEAR);
#Override
public void itemPurchaseError(String sku, String errorMessage) {
ToastBar.showErrorMessage("!subscribe_failure:"+errorMessage);
}
The callback procedure itemPurchaseError is called with an error message:
An unknown error occurred
Are there any procedures I can follow to check the settings of App Store connect or debug for solving this problem?
I have a screenshot of the SKU setting on App store connect for checking.
I run my App on my iPhone 7 through Xcode for subscribing my pdoduct. The console on Xcode shows messages below.
2022-07-17 13:33:41.976707+0800 VisionClass[8023:356071] Reachability Flag Status: -R t------ networkStatusForFlags 2022-07-17 13:34:55.142646+0800 VisionClass[8023:355757] SKPaymentTransactionStatePurchasing 2022-07-17 13:34:56.593077+0800 VisionClass[8023:356563] <SKPaymentQueue: 0x281cecd00>: Payment completed with error: Error Domain=ASDServerErrorDomain Code=3502 "This item is not available." UserInfo={NSLocalizedDescription=This item is not available.} 2022-07-17 13:34:56.597138+0800 VisionClass[8023:355757] Transaction error Error Domain=SKErrorDomain Code=0 "An unknown error occurred" UserInfo={NSLocalizedDescription=An unknown error occurred, NSUnderlyingError=0x288dc2c10 {Error Domain=ASDServerErrorDomain Code=3502 "This item is not available." UserInfo={NSLocalizedDescription=This item is not available.}}}
According to the error messages on the console, I add the bank account and tax information. I can subscribe to my product now.
Thank you.

publisher.cycleVideo() in opentok web application was not working it was giving error message like below picture and content

opentok.min.js:31 OpenTok:Publisher:error onStreamAvailableError OT_HARDWARE_UNAVAILABLE: The selected voice or video devices are unavailable. Verify that the chosen devices are not in use by another application. (getUserMedia error: NotReadableError) +0ms
s # opentok.min.js:31
opentok.min.js:31 OpenTok:Publisher:warn Received connectivity event: "Failure" without "Attempt" +0ms
s # opentok.min.js:31
opentok.min.js:31 OpenTok:Global Exception Handler:error OT.exception :: title: Unable to Publish (1500) msg: GetUserMedia +0ms
enter image description here
some times
scope.publisher.cycleVideo()
.then(function (data) {
console.log(data);
}).catch(function (err) {
console.log(err);
})
}
error block returns like below
l
code: undefined
constraintName: undefined
message: "The selected voice or video devices are unavailable. Verify that the chosen devices are not in use by another application. (getUserMedia error: NotReadableError)"
name: "OT_HARDWARE_UNAVAILABLE"
original Message: "Could not start video source"
stack: "Error: The selected voice or video devices are unavailable. Verify that the chosen devices are not in use by another application. (getUserMedia error: NotReadableError)↵ at u MutationObserver.p
__proto__: Error

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42601]:

I am new to postgresql/postgis and am unable to solve this problem. I have lat long values which I retrieve by the click event and split using
lonlat.split(",");
But when I pass them into the following query, I receive a syntax error.
$sql1=$conn->prepare("select id,ST_Contains(geom,GeomFromText(4326,'POINT(".$lon." ".$lat.")')) as yes_within from public.".$layername);
$sql1->execute();
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at end of input LINE 1: ...om,GeomFromText('POINT( )',4326)) as yes_within from public. ^' in C:\xampp\htdocs... Stack trace: #0 PDOStatement->execute() #1 {main} thrown in C:\xampp\htdocs... on line 22
From the error
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at end of input LINE 1: ...om,GeomFromText('POINT( )',4326)) as yes_within from public. ^' in C:\xampp\htdocs... Stack trace: #0 PDOStatement->execute() #1 {main} thrown in C:\xampp\htdocs... on line 22
That means that even though you think you're getting them from split, you're not getting them from split. You're concatenating an empty string. The problem isn't in PostgreSQL.
Aside from that, don't construct a point that way. Instead use,
ST_MakePoint(long,lat)::geography
Which creates a geography not a geometry and it does it without text-parsing.

DNN HTML Module on 9.1.1 throwing the following error

Since applying the latest critical security update, all pages that have the HTML module on them are throwing the following error resulting in a 404 page for the user. Please advise! Is there a good replacement module that we can use instead?
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0103: The name 'ModuleContext' does not exist in the current context
Source Error:
Line 41: {
Line 42: var wasReplacing = false;
Line 43: ModuleContext.Settings["MyTokensReplace"] = false;
Line 44: if (ModuleContext.Settings["TEXTHTML_ReplaceTokens"] != "") {
Line 45: if (Convert.ToBoolean(ModuleContext.Settings["TEXTHTML_ReplaceTokens"]) == true) {
This appears to be related to the MyTokens module. See the post on their website here:
https://www.dnnsharp.com/helpcenter/case/62435

500 error on google console when trying to access API

Procedure:
Go into the new console: console.developers.google.com
Click on APIs
In the console I get the following code
GET https://console.developers.google.com/m/project/myappID/api 500 (Internal Server Error)
third_party/javascript/angular/v1_2/angular.min.js:79(anonymous function)
third_party/javascript/angular/v1_2/angular.min.js:79u
third_party/javascript/angular/v1_2/angular.min.js:74f
third_party/javascript/angular/v1_2/angular.min.js:72B
third_party/javascript/angular/v1_2/angular.min.js:101B
third_party/javascript/angular/v1_2/angular.min.js:101(anonymous function)
third_party/javascript/angular/v1_2/angular.min.js:103g.$eval
third_party/javascript/angular/v1_2/angular.min.js:113g.$digest
third_party/javascript/angular/v1_2/angular.min.js:110g.$apply
third_party/javascript/angular/v1_2/angular.min.js:114k
third_party/javascript/angular/v1_2/angular.min.js:73B
third_party/javascript/angular/v1_2/angular.min.js:78v.onreadystatechange
This happens for all my apps.

Resources