Greenman999
Greenman999
Explore posts from servers
CCoder.com
Created by Greenman999 on 1/21/2025 in #help
Devcontainer starting is taking really long / multiple times building the Dockerfile?
Around 4 minutes i think
17 replies
CCoder.com
Created by Greenman999 on 1/21/2025 in #help
Devcontainer starting is taking really long / multiple times building the Dockerfile?
there you can see that after the logs close automatically there are like 200 lines more
17 replies
CCoder.com
Created by Greenman999 on 1/21/2025 in #help
Devcontainer starting is taking really long / multiple times building the Dockerfile?
17 replies
CCoder.com
Created by Greenman999 on 1/21/2025 in #help
Devcontainer starting is taking really long / multiple times building the Dockerfile?
but whats weird is that the logs for the second and third build appear at once
17 replies
CCoder.com
Created by Greenman999 on 1/21/2025 in #help
Devcontainer starting is taking really long / multiple times building the Dockerfile?
no
17 replies
CCoder.com
Created by Greenman999 on 1/21/2025 in #help
Devcontainer starting is taking really long / multiple times building the Dockerfile?
yes
17 replies
CCoder.com
Created by Greenman999 on 1/21/2025 in #help
Devcontainer starting is taking really long / multiple times building the Dockerfile?
that would be great! for me this happens with every devcontainer every time
17 replies
SSolidJS
Created by Greenman999 on 12/30/2024 in #support
Error Boundary does not catch errors of the resource
okay thanks, will try to implement it!
32 replies
SSolidJS
Created by Greenman999 on 12/30/2024 in #support
Error Boundary does not catch errors of the resource
but even with this if i load the solidjs playground, then disconnect my wifi and then click the little reload button, the state is pending. only after another click on the reload button the error appears?
32 replies
SSolidJS
Created by Greenman999 on 12/30/2024 in #support
Error Boundary does not catch errors of the resource
no it can't be the backend because im blocking the request in the browser, because of this it cant even reach the backend, right?
32 replies
SSolidJS
Created by Greenman999 on 12/30/2024 in #support
Error Boundary does not catch errors of the resource
if you block the api url in the inspector networks tab to simulate no internet, the status is pending
32 replies
SSolidJS
Created by Greenman999 on 12/30/2024 in #support
Error Boundary does not catch errors of the resource
32 replies
SSolidJS
Created by Greenman999 on 12/30/2024 in #support
Error Boundary does not catch errors of the resource
uhh i can try
32 replies
SSolidJS
Created by Greenman999 on 12/30/2024 in #support
Error Boundary does not catch errors of the resource
but the state is pending somehow, not unresolved
32 replies
SSolidJS
Created by Greenman999 on 12/30/2024 in #support
Error Boundary does not catch errors of the resource
that the component displays an error message such as “You have no Internet connection” instead of the fetched content
32 replies
SSolidJS
Created by Greenman999 on 12/30/2024 in #support
Error Boundary does not catch errors of the resource
hm even if the fetcher throws the network error, state is still pending and error is undefined
32 replies
SSolidJS
Created by Greenman999 on 12/30/2024 in #support
Error Boundary does not catch errors of the resource
how can i move the createResource inside it? until now the resource is just at the top typescript code of the component
32 replies
SSolidJS
Created by Greenman999 on 12/30/2024 in #support
Error Boundary does not catch errors of the resource
export const sendApiRequest = async (
url: string,
method: string,
shouldDisplaySuccessAlert: boolean = true,
body?: any
) => {
try {
const response = await fetch(url, {
method,
headers: body && { "Content-Type": "application/json" },
body: body && JSON.stringify(body),
});
let json;
try {
json = await response.json();
} catch (e) {
throw new Error("Failed to parse server response: " + e.message);
}

if (!response.ok) throw new Error(json.message);
if (shouldDisplaySuccessAlert)
AlertManager.addAlert(json.message, "success");
return json.data;
} catch (error) {
AlertManager.addAlert(error.message, "error", 3000);
throw error;
}
};
export const sendApiRequest = async (
url: string,
method: string,
shouldDisplaySuccessAlert: boolean = true,
body?: any
) => {
try {
const response = await fetch(url, {
method,
headers: body && { "Content-Type": "application/json" },
body: body && JSON.stringify(body),
});
let json;
try {
json = await response.json();
} catch (e) {
throw new Error("Failed to parse server response: " + e.message);
}

if (!response.ok) throw new Error(json.message);
if (shouldDisplaySuccessAlert)
AlertManager.addAlert(json.message, "success");
return json.data;
} catch (error) {
AlertManager.addAlert(error.message, "error", 3000);
throw error;
}
};
32 replies
HHono
Created by Greenman999 on 10/23/2024 in #help
How to prevent Server Error if no req body?
ok thanks
5 replies
SSolidJS
Created by Greenman999 on 10/19/2024 in #support
custom css classes not applied somehow
Ok i found the issue. Because the class was generated dynamically, tailwind couldnt find it and didnt compile the classes alert-.... To fix this I safelisted these classes in the tailwind config. https://tailwindcss.com/docs/content-configuration#safelisting-classes
2 replies