googleworkspace / cloud-search-samples Goto Github PK
View Code? Open in Web Editor NEWSamples for Google Cloud Search
Home Page: https://developers.google.com/cloud-search/
License: Apache License 2.0
Samples for Google Cloud Search
Home Page: https://developers.google.com/cloud-search/
License: Apache License 2.0
I have an admin account [email protected] for google cloud searching, I really don't know why I'm getting an error.
I have set up my company proxy in the JVM parameters, but the SchemaTool still has a connection failure when trying to make an outbound connection.
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.waitForConnect (Native Method)
at java.net.PlainSocketImpl.socketConnect (PlainSocketImpl.java:107)
at java.net.AbstractPlainSocketImpl.doConnect (AbstractPlainSocketImpl.java:399)
at java.net.AbstractPlainSocketImpl.connectToAddress (AbstractPlainSocketImpl.java:242)
at java.net.AbstractPlainSocketImpl.connect (AbstractPlainSocketImpl.java:224)
at java.net.SocksSocketImpl.connect (SocksSocketImpl.java:403)
at java.net.Socket.connect (Socket.java:608)
at sun.security.ssl.SSLSocketImpl.connect (SSLSocketImpl.java:285)
at sun.net.NetworkClient.doConnect (NetworkClient.java:177)
at sun.net.www.http.HttpClient.openServer (HttpClient.java:474)
at sun.net.www.http.HttpClient.openServer (HttpClient.java:569)
at sun.net.www.protocol.https.HttpsClient. (HttpsClient.java:265)
at sun.net.www.protocol.https.HttpsClient.New (HttpsClient.java:372)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient (AbstractDelegateHttpsURLConnection.java:191)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0 (HttpURLConnection.java:1227)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect (HttpURLConnection.java:1081)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect (AbstractDelegateHttpsURLConnection.java:177)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0 (HttpURLConnection.java:1362)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream (HttpURLConnection.java:1337)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream (HttpsURLConnectionImpl.java:246)
at com.google.api.client.http.javanet.NetHttpRequest.execute (NetHttpRequest.java:77)
at com.google.api.client.http.HttpRequest.execute (HttpRequest.java:981)
at com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed (TokenRequest.java:283)
at com.google.api.client.auth.oauth2.TokenRequest.execute (TokenRequest.java:307)
at com.google.api.client.googleapis.auth.oauth2.GoogleCredential.executeRefreshToken (GoogleCredential.java:394)
at com.google.api.client.auth.oauth2.Credential.refreshToken (Credential.java:493)
at com.google.api.client.auth.oauth2.Credential.intercept (Credential.java:217)
at com.google.api.client.http.HttpRequest.execute (HttpRequest.java:868)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed (AbstractGoogleClientRequest.java:419)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed (AbstractGoogleClientRequest.java:352)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute (AbstractGoogleClientRequest.java:469)
at com.google.cloudsearch.tutorial.SchemaTool.updateSchema (SchemaTool.java:127)
at com.google.cloudsearch.tutorial.SchemaTool.main (SchemaTool.java:85)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:282)
at java.lang.Thread.run (Thread.java:834)
[ERROR]
According to the doc, Synonyms are defined by indexing items with the _dictionaryEntry well-known schema.
However when register the object _dictionaryEntry with properties: _term, _synonym; wrong formatted resource name popped up.
[ERROR] {
[ERROR] "code" : 400,
[ERROR] "errors" : [ {
[ERROR] "domain" : "global",
[ERROR] "message" : "Wrong formatted resource name. Wrong formatted resource name. Wrong formatted resource name. Wrong formatted resource name. Wrong formatted resource name.",
[ERROR] "reason" : "badRequest"
[ERROR] } ],
[ERROR] "message" : "Wrong formatted resource name. Wrong formatted resource name. Wrong formatted resource name. Wrong formatted resource name. Wrong formatted resource name.",
[ERROR] "status" : "INVALID_ARGUMENT"
[ERROR] }
Hi to all,
On google chrome browser version 79.0.3945.88 on Mac os x 10.15.2 the end-to-end static widget here: cloud-search-samples/end-to-end/search-interface/ gives the following error on startup:
The client don't work.
Tried with firefox 71 and even if I got the same error, the client is working.
Failed to validate the config schema at '.github/sync-repo-settings.yaml': [
{
"instancePath": "/permissionRules/1/permission",
"schemaPath": "#/properties/permissionRules/items/properties/permission/enum",
"keyword": "enum",
"params": {
"allowedValues": [
"pull",
"push",
"admin"
]
},
"message": "must be equal to one of the allowed values"
}
]
Schema can be found at https://github.com/googleapis/repo-automation-bots/blob/main/packages/sync-repo-settings/src/schema.json
There is a 400 Error when running this widget. The pop up showed up when signing into my google account through this widget. Google Cloud Shell on the browser was used to run this widget.
When running the widget locally in my windows terminal, I was able to sign-in into my google account but nothing showed up. The 403 Error is shown in inspect element.
I have created and inputted the proper clientID into the public/config.json file and http://localhost:8080 is an Authorized JavaScript Origin
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.