Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Labels being recorded but not on bsky #2

Open
cmho opened this issue Oct 28, 2024 · 11 comments
Open

Labels being recorded but not on bsky #2

cmho opened this issue Oct 28, 2024 · 11 comments

Comments

@cmho
Copy link

cmho commented Oct 28, 2024

Hi--I have a slightly odd question which may not be an issue per se. (Or at least, the issue may be problem-between-chair-and-keyboard.)

I've gotten a labeler set up, the labeling requests are definitely hitting my server and the server is responding (using most recent version of Caddy), the labels are being written to my sqlite database, and the promise with the bsky server is resolving such that it gives a label data object and says the labels are applied... but for some reason the labels don't show up on accounts liking the posts. I'm a little stymied; it's not throwing any errors whatsoever when I look at the logs.

My code repo is here: https://tildegit.org/smallbird/hiresky (in large part forked from pronouns.adorable.mom) if that helps.

@futurGH
Copy link
Contributor

futurGH commented Oct 28, 2024

Pretty common issue with labelers unfortunately, and one that's hard to debug.

First you'll want to make sure that your labeler is reachable via both HTTPS and WS. Try hitting https://labeler.domain/xrpc/com.atproto.label.queryLabels?uriPatterns=* from your browser, and websocat wss://labeler.domain/xrpc/com.atproto.label.subscribeLabels?cursor=0 (output for the latter will be garbled, but any output means it's working).

Assuming that's all working fine, you can try updating the labeler declaration (run npx @skyware/labeler label edit, add a new line or some other meaningless change, then save) to try and get the AppView to pick up your labeler.

If you've confirmed that your labeler is reachable and labels still aren't showing up 5-10 minutes after the second step, it'd be best if you could join the Bluesky API Touchers Discord server if you're not already in it and drop a message there to debug.

@cmho
Copy link
Author

cmho commented Oct 28, 2024

oh, thanks for the quick reply! I can give that a shot once i'm off of work, and also glad to see that there's a discord because i have so many questions about stupid things i want to do with the bsky api

@cmho
Copy link
Author

cmho commented Oct 29, 2024

Update: Okay, it seems that while it is definitely running on both https and wss and I updated the label declarations (and those propagated to bsky.app), the labels still aren't appearing. I joined the bsky api touchers discord, though, so hopefully that'll turn up more ideas! Will update if I find a solution.

@coolroman
Copy link

@cmho Were you able to find a solution? I have the same problem.

@coolroman
Copy link

This solved the problem with labeler for me:

npx @skyware/labeler clear
npx @skyware/labeler setup

@futurGH
Copy link
Contributor

futurGH commented Nov 12, 2024

npx @skyware/labeler label edit without any changes will have the same effect without needing to redefine label values!

@coolroman
Copy link

npx @skyware/labeler label edit without any changes will have the same effect without needing to redefine label values!

In my case it didn't work (I tried edit/add/delete label). So one can try edit label first and if it doesn't help do "clear".

@futurGH
Copy link
Contributor

futurGH commented Nov 13, 2024

Interesting, I'll have to look into that

@cmho
Copy link
Author

cmho commented Nov 14, 2024

Unfortunately, doing the clear/setup rotation doesn't seem to work for me 😔

@dantodev
Copy link

I faced the same issue but noticed that my reverse proxy (nginx) did not forward ws and wss requests to the labeler server. Fixing this made my labels appear.

@ajnam12
Copy link

ajnam12 commented Dec 20, 2024

I am also running into the same issue and still haven't been able to solve it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants