zetcco / jobscout-frontend

2 stars 0 forks source link

Country, City & Province field not working #36

Closed thanis04 closed 1 year ago

thanis04 commented 1 year ago

img1

@zetcco

thanis04 commented 1 year ago

is any package should import to avoid this problem

zetcco commented 1 year ago

@thanis04 Reason that it does not work is that the API used to get the country names, state names and city names must be authenticated with an API key that is valid r only 1 day, so after it expires it won't work.

API key can be seen on src/features/addressSlice.js

There are two ways to fix this,

Or

thanis04 commented 1 year ago

Got it

On Thu, Feb 9, 2023, 10:45 AM Indrajith Madhumal @.***> wrote:

@thanis04 https://github.com/thanis04 Reason that it does not work is that the API used to get the country names, state names and city names must be authenticated with an API key that is valid r only 1 day, so after it expires it won't work.

API key can be seen on src/features/addressSlice.js

There are two ways to fix this,

  • Either use our own API to fetch country, state, city names

Or

  • Hardcode them to the client side (react)

— Reply to this email directly, view it on GitHub https://github.com/zetcco/jobscout-frontend/issues/36#issuecomment-1423647470, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASSCB4O7YLAZCEQTKJZIXFDWWR4NLANCNFSM6AAAAAAUUVOPHQ . You are receiving this because you were mentioned.Message ID: @.***>

zetcco commented 1 year ago

@thanis04 Fixed it on commit f28249cba0e9d61bb784c00e7edb981d3521c7a4

Created a backend service to fetch those data.