Unable to access agent settings to publish - dialogflow-es

Accessing Dialogflow "https://dialogflow.cloud.google.com", I can work on my agent as expected. However, I cannot click on the gear icon to access settings like publishing. (img below)
When i select the drop down menu, it endlesly indicates "loading agents..."
I have tried with chrome, firefox, and safari, made sure that cookies are not being blocked.
Checking on chrome's devtools, i see the following error for one of the calls
https://dialogflow.clients6.google.com/v2beta1/projects/-/locations/global/agent:search?requestSource=DIALOGFLOW_CONSOLE&pageToken&pageSize=1000&key=(mykey)
{
"error": {
"code": 503,
"message": "The service is currently unavailable.",
"status": "UNAVAILABLE"
}
}
Non active gear

I just found the URL for the settings page. It is not a solution but a work-around.
The format is as follows:
https://dialogflow.cloud.google.com/#/editAgent/**yourAgentName**/languages

Related

Advanced Search on tables gives error in pop-up dialog

I click on the Search box on the top bar of the databricks workspace and select "Open advanced search". A dialog pops up with the Tables tab selected and an error below that says: "An error occurred while fetching search results. Please try again later"
I am running the workspace on Azure. I have tables in my unity catalog that I want to search for specific fields. All other tabs search perfectly, no issues.
I can see the network trace traffic behind the browser spitting out this message:
POST: https://***/graphql/GlobalSearchUCGql
Response Code: 200:
Response Payload:
{
"data":{
"searchmidtierSearchUCMetadata":{
"results":null,
"apiError":{
"code":"PERMISSION_DENIED",
"message":"Cannot resolve workspace",
"__typename":"ApiError"
},
"__typename":"SearchmidtierSearchUCMetadataResponse"
}
}
}
Following this documentation: https://docs.databricks.com/search/index.html
Am I missing some sort of permissions in Azure Storage to allow the search against Unity Catalog?

Web extension converted from chrome to safari fails with error "The service_worker script failed to load due to an error."

As stated in the title, I am trying to convert a web extension originally made for chrome to safari, using the tool documented at https://developer.apple.com/documentation/safariservices/safari_web_extensions/converting_a_web_extension_for_safari
The project is created, builds, and launches successfully, however when the extension is enabled in safari I get 2 errors:
"An extension with a non-persistent background page cannot listen to webRequest events."
"The service_worker script failed to load due to an error."
The first error is a general bug in chromium, which is fixed in v107 (verified in chrome canary), and the extension relies on this API to work.
I have no idea what to do with the second error, as it provides no information at all. The option to access the background page process is disabled in the Safari Develop menu with the message "service worker failed to load".
Here is my "manifest.json"
{
"name":"...",
"manifest_version":3,
"content_scripts":[{"all_frames":false,"js":["content.js"],"matches":["file://*/*","http://*/*","https://*/*"],"run_at":"document_idle","match_origin_as_fallback":true}],
"host_permissions":["<all_urls>"],
"permissions":["tabs","activeTab","storage","scripting","notifications","webRequest","downloads","alarms"],
"background":{"service_worker":"background.js"},
"content_security_policy":{"extension_pages":"script-src 'self' 'wasm-unsafe-eval'; object-src 'self'"},
"web_accessible_resources":[{"resources":["inject.js"],"matches":["<all_urls>"]}],
"action":{"default_popup":"popup.html"},
"icons":{"16":"resources/icons/16x16.png","32":"resources/icons/32x32.png","48":"resources/icons/48x48.png","128":"resources/icons/128x128.png"},
"commands":{"_execute_action":{"suggested_key":{"default":"Shift+Alt+C"},"description":"Start the extension"}},
"version":"0.7.5",
"description":"...",
"author":"..."
}
Does anyone have any good suggestions/knowledge on how to debug why the service worker doesn't load? The extension works without any errors or warnings in Google Chrome.
The webRequest api doesn't seem to be available in safari when using manifest v3, and is a blocking issue, meaning the problem cannot currently be solved.
Furthermore storage.session also caused the service worker to crash, but this could be mitigated by using storage.local instead.
Will have to wait and see if safari supports the webRequest API in the future.

chrome extension call to gmail api

I am really new creating chrome extensions. I am trying to use Gmail API in my extension to get the Thread Id from sent email folder. I have used this tutorial:
https://medium.com/streak-developer-blog/how-to-use-the-gmail-api-in-a-chrome-extension-a272b2405b57
When I use the function getThreads(query, labels),
https://gist.github.com/omarstreak/7908035c91927abfef59
I did not get nothing. Also when I review the background console appear this error:
Unchecked runtime.lastError while running identity.getAuthToken: OAuth2 request failed: Service responded with error: 'bad client id: {0}'
I have created my own client_id and I put it in my manifest.
"oauth2": {
"client_id": "27599747390-.................apps.googleusercontent.com",
"scopes": [
"https://www.googleapis.com/auth/gmail.modify"
]
},
Have someone some tutorial or sample that works about using Gmail API in chrome extensions?.
Yes, there is actually a sample in the documentation. See this method if your purpose is to get a specified thread. Also to guide you accordingly, here is a github post to help you more on chrome extension essentials.

YouTube embedded video inside Chrome extension page appears as back rectangle in Chrome 56

Problem:
YouTube embedded video inside Chrome extension page appears as back rectangle in Chrome 56. How can we fix it?
Demo extension:
https://github.com/terales/youtube-not-play-in-extension-in-crome-v56
How to reproduce:
Load unpacked extension in chrome://extensions/
Open new tab
Video won't load, check developer tools for logged requests
Request displays as cancelled in Network tab:
But there is no problems if we look at request with WebRequest API:
Code for embedding:
<iframe width="853" height="480"
src="https://www.youtube.com/embed/dm57RF1l0Cs?rel=0&showinfo=0"
frameborder="0" allowfullscreen></iframe>
Manifest:
{
"name": "Youtube won't play embeded videos in crome-extension [Demo]",
"version": "1.0.0",
"manifest_version": 2,
"description": "Demo for encountered problem with cancelled request",
"chrome_url_overrides": {
"newtab": "newtab.html"
},
"permissions": [
"webRequest",
"<all_urls>"
],
"content_security_policy": "default-src 'self' https://s.ytimg.com; frame-src https://www.youtube.com;"
}
Checked:
content security policy — should be ok, worked fine month ago
disabled all other extensions — checked on empty chrome v56 profile
sharing url is from Share → Embed text box from youtube
video is loading and playing without any problems even if running from local
html file
documentation for extension don't have any info about
restricting iframes inside extension pages
protocol explicitly defined, so it isn't an error with a protocol-relative URL
build iframe with API — the same result
Chrome versions:
56.0.2924.87 (64-bit) — won't play a video, request displayed as cancelled,
59.0.3035.0 canary (64-bit) — will play a video, but request displayed as cancelled
Chromium:
59.0.3036.0 (Developer Build) (32-bit) — will play a video, but request displayed as cancelled
Update from Chromium Dev:
This is probably not a fix that we would do a stable push for, so you'll have to wait until 57 becomes stable (which should be soon).
Source of the error
Found in net-internal error:
error_204
Unknown error
Error: Failed to construct 'IntersectionObserver': Unable to get root node in main frame to track.
at new AZ (https://www.youtube.com/yts/jsbin/player-en_US-vflg9Wu9U/base.js:3691:122)
at new V1 (https://www.youtube.com/yts/jsbin/player-en_US-vflg9Wu9U/base.js:3972:112)
at V1.create (https://www.youtube.com/yts/jsbin/player-en_US-vflg9Wu9U/base.js:6964:333)
at Bh.<anonymous> (https://www.youtube.com/yts/jsbin/www-embed-player-vflzkmSYc/www-embed-player.js:431:269)
at Bh.k.mb (https://www.youtube.com/yts/jsbin/www-embed-player-vflzkmSYc/www-embed-player.js:431:308)
at Fh (https://www.youtube.com/yts/jsbin/www-embed-player-vflzkmSYc/www-embed-player.js:429:143)
at Bh.k.qa (https://www.youtube.com/yts/jsbin/www-embed-player-vflzkmSYc/www-embed-player.js:422:176)
at https://www.youtube.com/yts/jsbin/www-embed-player-vflzkmSYc/www-embed-player.js:464:420
at https://www.youtube.com/yts/jsbin/www-embed-player-vflzkmSYc/www-embed-player.js:69:63
line=Not available
level=ERROR
There is already closed question about this error:
IntersectionObserver Error when embedding a YouTube video in an iframe
There is an issue submitted to the Chrome team:
https://bugs.chromium.org/p/chromium/issues/detail?id=698545
We can't do anything now, waiting for reply.

How to make IIS7 serve custom content with status code 404

I have a classic ASP page that sets the response header to 404 Not Found plus some you might be interested in links:
Response.Clear
Response.Status = "404 Not Found"
Response.Write "<h1>Oops</h1>"
Response.Write "<p>The page you requested was not found</p>"
Response.Write "<p>But we have some suggestions:</p>"
This code ran fine on IIS6 i.e. it sent correct response code plus the content. However, on IIS7, all I get is this:
The resource you are looking for has been removed, had its name
changed, or is temporarily unavailable.
How can I make IIS show my content without changing configuration (if possible).
Firstly, ensure that the application pool for the site is running in "Classic Mode". To set this, select the application pool for the site in IIS, click "Basic Settings..." and set "Managed pipeline mode" to "Classic".
Next, select the site in IIS and, click the "Error pages" icon. Click "Edit Feature Settings..." and make sure "error responses" is set to "Custom Error Pages".
You should then find you can set the 404 error to execute your ASP page.

Resources