GithubHelp home page GithubHelp logo

candilibre's People

Contributors

anthonymq avatar goazil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

candilibre's Issues

BAD RESPONSE 500 from https://beta.interieur.gouv.fr/candilib/api

Hello,

Je viens d'installer Candilibre, j'arrive à l'exécuter sur Windows. Par contre même avec un lien valide (Tester sur le navigateur) l'appli me retourne toujours le même message d'erreur 500.

PI : j'ai ajouté la ville Saint Priest dans le 69, et j'ai essayé avec SAINT PRIEST et SAINT_PRIEST.

Avez-vous eu ce problème ? Merci d'avance pour votre aide.


Logs :

19:58:50 - Début de la recherche avec les parametres suivants :
date minimum : 12/01/21
villes : [SAINT_PRIEST]

19:58:50 - Oups, une erreur inconnue est arrivée : services.api.client.errors.CandilibreClientBadResponseException: BAD RESPONSE 500 from https://beta.interieur.gouv.fr/candilib/api/v2/candidat/places?geoDepartement=69&nomCentre=SAINT_PRIEST : {"isTokenValid":false,"message":"Votre lien de connexion n'est pas valide, veuillez en demander un autre via le bouton "Déjà inscrit"","success":false}

Changement de l'API candilib

Candilib a mis à jour son API et a maintenant besoin d'un header "X-CLIENT-ID".

Pour son format c'est un UUID V4 concaténé à un numéro de version de leur api.
Exemple :
X-CLIENT-ID: 99525164-5d4e-41fc-bde4-ba780088a230.2.11.15-beta2.

UUID : 99525164-5d4e-41fc-bde4-ba780088a230
Version : 2.11.15-beta2.

Erreur lors de l'éxecution, est-ce normal ?

Bonjour,

Lorsque j'éxecute le logiciel il y a une erreur, j'ai précisément ce message qui s'affiche :
"Oups, une erreur inconnue est arrivée : kotlinx.coroutines.JobCancellationException: StandaloneCoroutine was cancelled; job=StandaloneCoroutine{Cancelling}@56bb398"

J'aimerais juste être sûr que ce soit une erreur normale lorsqu'il n'y a pas de place disponible, et que ça vient pas de mon ordinateur, histoire de ne pas laisser tourner le bot pour rien.

Merci pour votre aide !

Impossible d'utiliser le programme dans le 69

Bonjour,

Je te remercie pour cette belle initiative qui je suis sûre pourra aider beaucoup de candidats. Néanmoins, je souhaiterais utiliser ton logiciel pour Saint-Priest dans le 69 et je ne trouve pas cette ville. Est-il possible de la rajouter ?

Je te souhaite une bonne soirée,
Cordialement.

Rewrite README

We want this piece software to be able to everybody. We should rewrite step by step tutorial to use this software in the readme.

Use x_user_id in calls

Candilib api have been updated. We should now send the user id as header.
Related PR : LAB-MI/candilibV2#1306

Solution : we should make a call to verify-token with the token and get the id from the header in the response.

API CALL ERROR on candidat/places : Bad token

Salut, j'ai un problème quand je rentre le lien de connexion dans le champs prévu. Dès que clique sur "commencer la recherche", j'ai cette erreur qui m'est retourné :
API CALL ERROR on candidat/places : Bad token + mon_token
Votre lien Candilib est expiré ou n'a pas été correctement copié.

Pourtant je copie le lien depuis le mail sans l'ouvrir et quand je le colle dans safari, il me redirige bien vers le site de candilib avec mon token.
merci d'avance :>

Unexpected JSON token at offset 0

Bonjour Tristan,
Avant tout merci pour ton travail. J'ai une erreur qui s'affiche que je ne comprends pas. Ci-après le détail merci

16:14:37 - Début de la recherche avec les parametres suivants :
date minimum : 12/08/20
villes : [ROSNY SOUS BOIS, VILLEPINTE]
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 226 100 226 0 0 974 0 --:--:-- --:--:-- --:--:-- 969
API CALL ERROR on candidat/places : Unexpected JSON token at offset 0: Expected '[, kind: LIST'
JSON input: <!DOCTYPE HTML PUBLIC "-//IETF.....
16:14:38 - Oups, une erreur inconnue est arrivée : kotlinx.serialization.json.internal.JsonDecodingException: Unexpected JSON token at offset 0: Expected '[, kind: LIST'
JSON input: <!DOCTYPE HTML PUBLIC "-//IETF.....

Impossible de compiler sous MacOS

Bonjour,
J'aimerais récupérer la procédure pour compiler le programme (n'ayant t jamais fais de Kotlin, j'ai simplement
essayer de faire la commande "./gradlew build" mais je récupère l'erreur suivante : Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.) Cela dans le but de pouvoir modifier quelques constante dont les constantes de temps, depuis quelques semaine candilib met a jours les places disponible de 12h à 12h50, donc il faut changer les constante pour être en phase de rush pendant tout cet intervalle.

Erreur avec les espaces dans le nom des centres

Les paramètre dans les GET ne sont pas bien encodé. La requête échoue lorsqu'il y a un espace dans un des paramètres.

https://beta.interieur.gouv.fr/candilib/api/v2/candidat/places?begin=2021-11-12T15:38:08.206+01:00&end=2022-02-28T23:59:59.999+01:00&geoDepartement=93&nomCentre=NOISY LE GRAND

devrait être encodé comme ça

https://beta.interieur.gouv.fr/candilib/api/v2/candidat/places?begin=2021-11-12T15:38:08.206+01:00&end=2022-02-28T23:59:59.999+01:00&geoDepartement=93&nomCentre=NOISY%20LE%20GRAND

Aide

Bonjour je n’arrive pas à utiliser le logiciel possible de m’aider ou de me trouver une place svp ? Merci beaucoup

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.