You need to call send() after you finish setup the request.
}).onFailed((e) -> { console.log("Failed to get entitlements");
console.log(e.getBody()); }).send();
Following the documentation on the website is a good idea too
domino-rest documentation
<https://dominokit.com/solutions/domino-rest/v1/docs/getting-started>
On Friday, November 7, 2025 at 12:47:31 AM UTC+3 Michael Conrad wrote:
> Hello all, hopefully someone can tell me what stupid thing I’m doing that
> I’m not seeing.
>
> I’ve setup a project to do initial a client side domino-rest
> implementation.
>
> Everything compiles cleanly for both gwtCompile and gwtSuperDev.
>
> The Network panel in the Firefox Inspector never shows an XHR request.
>
> The Javascript console only shows:
>
> ApiTestEntryPoint loaded apitest-0.js:13189:16DominoRestConfig initialized
> apitest-0.js:13203:16
>
> I appears that neither the request interceptor nor either of the onSuccess
> or onFailed callbacks are run.
>
> Really flummoxed here and would greatly appreciate some hint as to what is
> wrong.
>
> This is my services file:
>
> package com.newsrx.butter.client.domino.api;
> import jakarta.ws.rs.GET;import jakarta.ws.rs.Path;import
> org.dominokit.rest.shared.request.service.annotations.RequestFactory;
> @RequestFactory@Path("1.0/")public interface UserV1 {
> @Path("entitlements")
> @GET
> String entitlements();
> }
>
> This is my Entry Point:
>
> package com.newsrx.butter.client.domino.ep;
> import com.google.gwt.core.client.EntryPoint;import
> com.google.gwt.core.client.Scheduler;import
> com.newsrx.butter.client.domino.api.UserV1Factory;import
> elemental2.dom.Console;import elemental2.dom.DomGlobal;import
> org.dominokit.rest.DominoRestConfig;
> public class ApiTestEntryPoint implements EntryPoint {
> @Override
> public void onModuleLoad() {
> Console console = DomGlobal.console;
> console.log("ApiTestEntryPoint loaded");
> DominoRestConfig.initDefaults();
> Scheduler.get().scheduleDeferred(this::test);
> }
>
> public void test() {
> Console console = DomGlobal.console;
> UserV1Factory userV1 = UserV1Factory.INSTANCE;
>
> DominoRestConfig config = DominoRestConfig.getInstance();
>
> config.addRequestInterceptor((request, contextWait) -> {
> console.log("Request intercepted: " + request.getUrl());
> console.log("Request timeout value: " + request.getTimeout());
> });
>
> console.log("DominoRestConfig initialized");
> userV1.entitlements().onSuccess((s) -> {
> console.log("Got entitlements");
> System.out.println(s);
> // s.result.forEach(System.out::println);
> }).onFailed((e) -> {
> console.log("Failed to get entitlements");
> console.log(e.getBody());
> });
> }
> }
>
> Dependencies block:
>
> dependencies {
> compileOnly "org.gwtproject:gwt-user:2.12.2"
> implementation "com.google.jsinterop:base:1.0.0"
>
> implementation 'jakarta.ws.rs:jakarta.ws.rs-api:4.0.0'
>
> annotationProcessor 'com.google.dagger:dagger-compiler:2.57.2'
> implementation "com.google.dagger:dagger-gwt:2.57.2"
>
> annotationProcessor 'org.dominokit:domino-rest-processor:2.0.0-RC2'
> implementation 'org.dominokit:domino-rest-client:2.0.0-RC2'
>
> annotationProcessor 'org.dominokit:domino-jackson-processor:1.0.5'
> implementation('org.dominokit:domino-jackson:1.0.5')
>
> testImplementation 'org.testng:testng:7.10.2'
> }
>
> ​
>
--
You received this message because you are subscribed to the Google Groups "GWT
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/google-web-toolkit/57433259-36a6-4779-9163-97d4bbacc660n%40googlegroups.com.