bullhorn / career-portal

A Bullhorn Platform SDK app that allows candidates to search for and apply to jobs.
https://bullhorn.github.io/career-portal/
MIT License
130 stars 149 forks source link

Receiving Invalid Corp Token error #344

Closed saltoriousSIG closed 4 years ago

saltoriousSIG commented 4 years ago

I have been working to get the OSCP set up to pull current jobs data to be used elsewhere. I have been able to get the the project to successfully build, but when i go to view the site in localhost, I get the error "Invalid Corp Token". I've verified with a bullhorn support analyst that we have received the correct Corp Token and Swim Lane number. I was directed to this forum to try and find a solution to this issue. Any help would be greatly appreciated!

Thanks!

charlesabarnes commented 4 years ago

How have you entered the corp token in?

saltoriousSIG commented 4 years ago

I have included it in the app.json file located within the src folder, like so:

"service": { "batchSize": 500, "corpToken":"6MQU29", "port": null, "swimlane": "42",

charlesabarnes commented 4 years ago

so this is during development? how are you running it? npm run serve or npm run build && npm start

saltoriousSIG commented 4 years ago

Im using npm run build, then npm start

charlesabarnes commented 4 years ago

so the app.json file gets replaced with what is in app.json.template, so you may want to either update the template or update the app.json file in the dist directory.

charlesabarnes commented 4 years ago

Please let me know if you have any additional questions

saltoriousSIG commented 4 years ago

running npm run serve instead seemed to do the trick for me. Thanks for your help!