Discussions
Implementing the new Notification API: 404 on /notification request
Hi, we are currently implementing the notification API and receive a 404 response from the notification request. As mentioned in <https://dev.plugins.haiilo.com/reference/createnotification>, this indicates that the feature is not available.
We implemented the process as suggested in the documentation:
- Changed plugin manifest so enable apiAccess with scope "plugin:notify"
- Provided an endpoint to receive the access_token response
- ...which is definitely called on plugin installation and receives the expected data including authorization_code
- we use that response data to request the actual accesstoken
- we receive a valid accesstoken with expires_in: 599 and scope "plugin:notify"
- then, a few seconds later, trigger a notification in our plugin instance, which creates a request to: https\://{tenant}.coyocloud.com/api/plugins/{pluginId}/instance/{srcId}/notification
with Authorization: Bearer ${accessToken}
and the required notification data
where pluginId is the pluginId from the access_token response (or the api/oauth/token, its identical)
and srcId is the triggering plugin instance id
Thats when we receive the 404 error and don't know what's going wrong here. I didn't want to post all responses and tokens, but if you need any more detailed info i'm happy to provide these.
Another thing I noticed:
The diagram at <https://dev.plugins.haiilo.com/docs/request-diagram> mentions 401 responses for 'notify' which is in my understanding just a shortcode for the notification endpoint here: <https://dev.plugins.haiilo.com/reference/createnotification>
But at this page, a 401 is not mentioned. Is it just missing in documentation or if not, what is the response for an invalid token?
Kind regards and thanks in advance!
Marcus
Posted by Marcus Biel about 2 months ago
OAuth2.0 Token für die Authentifizierung der Anfragen in einem Tenant mit SSO
Basierend auf diese Dokumentationsseite <https://docs.coyoapp.com/restdoc/authentication?version=v37.2.3> braucht man OAuth2.0 Token für jede Anfrage, die man an Coyo App schickt. Den Token bekommt man mithilfe von Username+Passoword des Nutzers, um dann die Anfragen im Namen des Nutzers zu senden. Wie soll man an die Tokens kommen, wenn der Login über SSO eingerichtet ist und die Nutzer keine Konten haben, die in der Haiilo Umgebung verwaltet werden?
Posted by Igli Manaj 4 months ago
Sometimes the plugin cannot be initialized ERR6 after Cannot read properties of null (reading 'contentwindow')
This ticket refers to the customer ticket 56816.
In a Haiilo instance of our customer, sometimes the Haiilo plugin cannot be initialized. In the console you can see an ERR6 with the error message "ERROR PluginError: Initialization timed out after 60000ms (ERR6) at 672.5ce4467c03910880.js:1:15927". If the page is reloaded in such cases, the plugin is initialized correctly afterwards.
Noticeable is that before that another error message "Uncaught TypeError: Cannot read properties of null (reading 'contentwindow')
at init.js?id=0fa78adf...7&lang=en-US:185:78" appears and then after 60000ms the ERR6 code appears. I have two screenshots showing the behavior.
I myself, cannot reproduce in our Haiilo test instance the problem. Here the plugin is always loaded.
Where does the error "Uncaught TypeError: Cannot read properties of null (reading 'contentwindow')
at init.js?id=0fa78adf...7&lang=en-US:185:78" and do you think this error is related to ERR6?
Thanks,
Simon
Posted by Simon 8 months ago
Get Haiilo parent theme into the plugin context
Currently, the Haiilo plugin provides a configuration field with the possibility to set custom configurations such as background color, etc.
<https://dev.coyoapp.com/recipes/add-global-configuration>
<https://dev.coyoapp.com/recipes/use-configuration-values-from-the-pluginadapter>
But I would like to know if there is a possibility to get the information about the current theme colors of logged-in users into the plugin context so that I can change the theme color of my custom plugin components e.g. buttons without using plugin configuration.
Posted by Roby Hartono 8 months ago
Error Code 400 on https://community.haiilo.com/web/plugins/ec8f7316-d38a-4e68-828e-8a2efe614f2e/init
Hello,
in the Haiilo instance community.haiilo.com our plugin is not loaded reliably . We have not been able to reproduce the error in other instances.
The request <https://community.haiilo.com/web/plugins/ec8f7316-d38a-4e68-828e-8a2efe614f2e/init?srcld=7b0285c7-1dc2-47b1-ae34-fdeacf8c2171-94dc03f0-dbfd-4c2f-8823-d28b1e9afb35&jti=vZIINPs74iaJrNuC> gets a 400 error back in cases where the plugin is not loaded.
Any help will be appreciated :)
Best,
Simon
Posted by Simon Kapell 8 months ago
Performance Problems after switching - Hosting Provider
Hey guys,
I had a conversation with a client from us (WESPA). The wrote me that after a Hosting provider change from you the Application is very slow and the integrations also.
Do you know that problem?
Here is what he wrote:
The problem has existed since yesterday (1. june 2023). My colleague Andreas (Head of IT) said that Haiilo has changed to a different service provider (provider/host - no idea...) and thus has a different technical architecture behind it. Since then, we have also had problems with the system in the WESPA.
Let's see what Finanz Informatik still allows or can do (unfortunately he wasn't that optimistic - but that was in relation to the intranet itself and not the interface to the ideas lab...).
Is there any problems you know? Should we update our integration?
Thanks for letting me Know
David from Table of Visions (Innofy - Idea- and Innovation-Management)
Posted by David Holetzeck 9 months ago
Methode OnSave funktioniert nicht richtig
In der Dokumentation steht, dass man einen Callback registrieren kann, der jedes Mal ausgeführt wird, wenn Haiilo Home eine Speicheranforderung initiiert, d.h. jedes Mal, wenn ein Benutzer auf den Speichern-Button im Einstellungsmodal klickt. Aber das ist nicht der Fall.
Um zu zeigen, dass dies nicht der Fall ist, habe ich ein funktionierendes Plugin verwendet und diese Methode darauf basierend aufgerufen, um zu sehen, ob sie funktioniert oder nicht.
Das folgende Bild zeigt, dass sie hinzugefügt wurde und bei jedem Klick auf die Schaltfläche "Speichern" aufgerufen wird:
![](https://files.readme.io/0357dcc-image.png)
Im folgenden Screenshot sehen wir nicht, dass es keine Protokolle in der Konsole gibt, wenn die Schaltfläche "Speichern" angeklickt wird. Dies zeigt uns, dass die Methode nicht funktioniert. Auf der linken Seite sollte "xxx" angezeigt werden, "Diese Funktion wurde aufgerufen".
![](https://files.readme.io/92aece5-image.png)
Könnt ihr bitte diese OnSave Methode prüfen?
Posted by Andrés Felipe García Cano 9 months ago
Mehrfachauswahl bei Widget "Anstehende-Events"
Hallo liebes Haiilo Support Team,
bei der Option "Selected" wollen wir mehr als eine Page oder Community auswählen können.
Das Problem ist, dass der Framework versteckt die Widget-Struktur. So können wir nicht wissen, wie die Events von deren Pages/Communities übertragen wurden. Dementsprechend können wir nicht mehr als eine Page oder Community bei der Option "Selected" speichern.
wir brauchen erstmal wissen wie genau die API-Requests für das hinzufügen eine Seite oder Community in der Option "Selected" für das Widget "Anstehende Events" aussieht, also der Code. Der Code ist versteckt und können wir aktuell nicht wissen, welche API-Requests die Events übertragen.
Wenn wir den Code sehen können, werden wir dan verstehen, wie die events über API Requests übertragen sind. Dann werden wir den Code für mehrere Seiten und/oder Communities anpassen können.
Am Ende wollen wir das gleiche wie bei das "Blogbeitrag" Widget erreichen. (siehe Bilder)
Erstes Bild zeigt wie aktuell ist.
![](https://files.readme.io/2806e6f-9CE5C46B-01FA-441E-B1E5-D97CA73C440F.jpeg)
Zweites Bild zeigt was Blog-Beitrag widget macht und wir wollen.
![](https://files.readme.io/3c33363-9B532D2A-8C22-439D-A3BD-1CF185450695_1_105_c.jpeg)
Könnt ihr uns den Code bitte teilen, damit wir wissen, wie man über API die Pages/Communities mit deren Events bekommt?
Posted by Andrés Felipe García Cano 9 months ago
Widget / iFrame - CSS-Questions / Height of a Widget / Size of a Widget
Hi all,
Wespa had the following question:
1. if you include a plugin (which is embedded via iFrame full width), there is always a frame around the plugin. Is it possible to remove this frame somehow?
2. if you include the plugin, the height from a widget is always limited from haiilo. Is it possible to set the height to 100% height or to increase it manually?
3) If you integrate the widget into a subpage so that the navigation is displayed on the left, we have the following question: How big is the widget actually minus the specified frame?
Thank you for your feedback.
Kind regards
David
Posted by David Holetzeck about 1 year ago
Automatic update of the Manifest
Hi there,
i wanted to ask, if the manifest of a plugin is updated automatically or if the customer has to click on the "update Plug-in" button. We recently changed the manifest to include the userLanguage in the context and now I wondered if this change is reflected automatically or if you have to update the plugin manifest manually.
Kind regards
Chris
Posted by Chris Langenberg about 1 year ago