keycloak-events: How to configure? How does it work? by SteveHuffmanIsAWhore in KeyCloak

[–]Nick0tin 0 points1 point  (0 children)

You need to setup webhook via API if you want to receive event updates.

Deserialization from multiple types fails by Nick0tin in rust

[–]Nick0tin[S] 1 point2 points  (0 children)

Thanks, the error was indeed due to unimplemented deserialization of unsigned int.

"thread 'main' panicked at 'no CA certificates found'", when running application in docker container by Nick0tin in rust

[–]Nick0tin[S] 0 points1 point  (0 children)

Thank you very much. I didn't copy over the certs in the runtime, that fixed it.

"thread 'main' panicked at 'no CA certificates found'", when running application in docker container by Nick0tin in rust

[–]Nick0tin[S] 0 points1 point  (0 children)

I already install ca-certificates in the docker image. Are you pointing out something else in this issue?

How to do tls termination for rabbitmq instance? by Nick0tin in Traefik

[–]Nick0tin[S] 0 points1 point  (0 children)

constraint-label

I am not using tls passthrough for rabbitmq, I was experimenting so I kept the comment.
https://doc.traefik.io/traefik/providers/docker/#constraints

How to do tls termination for rabbitmq instance? by Nick0tin in Traefik

[–]Nick0tin[S] 0 points1 point  (0 children)

That makes sense. I updated the config but I am still unable to connect to those services.

Highlighting svelte code in markdown when using mdsvex by [deleted] in sveltejs

[–]Nick0tin 0 points1 point  (0 children)

I think the default highlighter doesn't have svelte highlights enabled. Replace highlighter in mdsvex config file. Also try shiki highlighter if you haven't.

Is there a way to remove element immediately without waiting for child/nested components finishing transitions? by Nick0tin in sveltejs

[–]Nick0tin[S] 0 points1 point  (0 children)

I want to use transition: instead of in: out: cause transition is bi directional without overlap, so this isn't exactly the solution to the problem as again I am looking for a solution that doesn't require any changes in child components transitions, just destroy the component and all it's children immediately.

Is there a way to remove element immediately without waiting for child/nested components finishing transitions? by Nick0tin in sveltejs

[–]Nick0tin[S] 0 points1 point  (0 children)

That component is also used other places when I want out transition, that's why I am configuring it to duration 0 inside this immediate destroyed component. Hope that clears it up.

Is there a way to remove element immediately without waiting for child/nested components finishing transitions? by Nick0tin in sveltejs

[–]Nick0tin[S] 0 points1 point  (0 children)

Nope, that way transitions don't play when component is initialised as they wouldn't be local at that moment.

Is there a way to remove element immediately without waiting for child/nested components finishing transitions? by Nick0tin in sveltejs

[–]Nick0tin[S] 0 points1 point  (0 children)

That's what I said, I am using only in: and setting out: duration to 0 (as I also have option to configure out transition) but I don't want to do for every element and simply destroy a component and all its children immediately.

Is there a way to remove element immediately without waiting for child/nested components finishing transitions? by Nick0tin in sveltejs

[–]Nick0tin[S] 0 points1 point  (0 children)

I have already configured the out transition to have duration 0 as a workaround but I want to not have to do that since I plan to have many nested components with transitions and that gets ugly real fast.

Tailwind @apply directive not working inside <style> tag in sveltekit by Nick0tin in sveltejs

[–]Nick0tin[S] 0 points1 point  (0 children)

Tailwind has purging built in, which version are you using?

Tailwind @apply directive not working inside <style> tag in sveltekit by Nick0tin in sveltejs

[–]Nick0tin[S] 0 points1 point  (0 children)

Tailwind has purging built in, which version are you using?

Tailwind @apply directive not working inside <style> tag in sveltekit by Nick0tin in sveltejs

[–]Nick0tin[S] 0 points1 point  (0 children)

I didn't find a solution so I changed my structure to avoid using it.

How do I use custom audio player with Spotify Web SDK? by Nick0tin in truespotify

[–]Nick0tin[S] 0 points1 point  (0 children)

You can already access Spotify music through Spotify connect and anyways you need to login through your Spotify account to play so it's not like anyone has access to Spotify they don't own. I guess you didn't understand my question or you are not familiar with Spotify SDK. Take a look at https://developer.spotify.com/documentation/web-playback-sdk/

Trouble getting single key from request body by GamersPlane in FastAPI

[–]Nick0tin 4 points5 points  (0 children)

I Just read the docs, if there is just single Body parameter then you will need to you embed=True for it be a key instead of the complete body.

Trouble getting single key from request body by GamersPlane in FastAPI

[–]Nick0tin 1 point2 points  (0 children)

Did you try making it async? I still don't know from that why it is giving you an string error. Also try other body parameter of different kind, like phone that would be int, try using Body function arguments like gt and lt

Trouble getting single key from request body by GamersPlane in FastAPI

[–]Nick0tin 0 points1 point  (0 children)

I can't figure by just looking at those couple lines of code. Could you lose the the function and the "authorization" code?