boly38 / botEnSky

BlueSky bot account that bring happiness to BlueSky users
https://bsky.app/profile/botensky.bsky.social
MIT License
0 stars 0 forks source link

replyTo 400 #61

Closed boly38 closed 4 days ago

boly38 commented 2 weeks ago

botEnSky is unable to reply

25-06-2024 12:54:26.928 [info ] 🧾️PlantnetApiService - Pla@ntNet identify following image : https://cdn.bsky.app/img/feed_fullsize/plain/did:plc:umlxafzutkwwnbonfpz7iazr/bafkreid6fwibnbokwfzig5bvcmzm35wofiwby5plgutjbcb4gtooo22y2m@jpeg
25-06-2024 12:54:32.695 [error] 🧾️PlantnetCommonService - 🖥️ Plantnet  👤 REDACTED replyTo {
  "status": 400,
  "error": "InvalidRequest",
  "success": false,
  "headers": {
    "access-control-allow-origin": "*",
    "content-length": "123",
    "content-type": "application/json; charset=utf-8",
    "date": "Tue, 25 Jun 2024 10:54:32 GMT",
    "etag": "W/\"7b-5OYjOucrkx456vG6nIBiH/VZWIA\"",
    "keep-alive": "timeout=90",
    "ratelimit-limit": "5000",
    "ratelimit-policy": "5000;w=3600",
    "ratelimit-remaining": "4997",
    "ratelimit-reset": "1719316472",
    "strict-transport-security": "max-age=63072000",
    "vary": "Accept-Encoding",
    "x-powered-by": "Express"
  }
}
25-06-2024 12:54:32.696 [info ] 🧾️PlantnetCommonService - Unable to make bluesky embed of image https://bs.plantnet.org/image/o/a1079db51c9eddcc35b184b759730d701db9bbac, so keep it as text link: impossible de répondre au post
25-06-2024 12:54:32.911 [error] 🧾️PlantnetCommonService - 🖥️ Plantnet  👤 REDACTED replyTo {
  "status": 400,
  "error": "InvalidRequest",
  "success": false,
  "headers": {
    "access-control-allow-origin": "*",
    "content-length": "123",
    "content-type": "application/json; charset=utf-8",
    "date": "Tue, 25 Jun 2024 10:54:32 GMT",
    "etag": "W/\"7b-5OYjOucrkx456vG6nIBiH/VZWIA\"",
    "keep-alive": "timeout=90",
    "ratelimit-limit": "5000",
    "ratelimit-policy": "5000;w=3600",
    "ratelimit-remaining": "4994",
    "ratelimit-reset": "1719316472",
    "strict-transport-security": "max-age=63072000",
    "vary": "Accept-Encoding",
    "x-powered-by": "Express"
  }
}
25-06-2024 12:54:32.912 [error] 🧾️PlantnetCommonService - 🖥️ Plantnet  👤 REDACTED Impossible d'identifier l'image de https://bsky.app/profile/neoresistant.bsky.social/post/3kvopsv5hwk2m avec Plantnet : impossible de répondre au post
boly38 commented 2 weeks ago

the response message that is being attempted to be sent is :

"replyMessage":"Pl@ntNet identifie (à 82.39%) Lathyrus latifolius (fam Fabaceae) com. Pois de senteur, Pois vivace, Bonjour il est bien dommage de nommer pois de senteur la gesse latifolia qui n'a aucune senteur cela crée une confusion avec Lathyrus odoratus plante parfumées et menacé bien à vous Daniel Bourget
#BeSPlantnet #IndentificationDePlantes"

Bug

⚠️ 🐛 So replyMessage length is 340 where the BlueSky post limit is 300 💣

==> 🆕 I asked the docs details for POST api here : https://github.com/bluesky-social/bsky-docs/issues/162

PlantNet data

ℹ️ plantnet related entry : https://identify.plantnet.org/fr/k-world-flora/species/Lathyrus%20latifolius%20L./data

image

How to fix:

boly38 commented 4 days ago

PlantNet answers to my contact message: negative vote should arrive soon to improve collaborative moderation. Related CN entry has been fixed.