Giter Club home page Giter Club logo

Comments (6)

siparsons avatar siparsons commented on June 2, 2024

The full error:

Fatal error: Uncaught exception 'Exception' with message 'There was a problem logging into the Bullhorn API.' in D:\home\site\wwwroot\wp-content\plugins\bh-staffing-job-listing-and-cv-upload-for-wp2\bullhorn.php:67 Stack trace: #0 D:\home\site\wwwroot\wp-content\plugins\bh-staffing-job-listing-and-cv-upload-for-wp2\cron.php(40): Bullhorn_Connection::sync() #1 [internal function]: bullhorn_sync_now('') #2 D:\home\site\wwwroot\wp-includes\class-wp-hook.php(298): call_user_func_array('bullhorn_sync_n...', Array) #3 D:\home\site\wwwroot\wp-includes\class-wp-hook.php(323): WP_Hook->apply_filters('', Array) #4 D:\home\site\wwwroot\wp-includes\plugin.php(453): WP_Hook->do_action(Array) #5 D:\home\site\wwwroot\wp-admin\admin.php(154): do_action('admin_init') #6 D:\home\site\wwwroot\wp-admin\options-general.php(10): require_once('D:\\home\\site\\ww...') #7 {main} thrown in D:\home\site\wwwroot\wp-content\plugins\bh-staffing-job-listing-and-cv-upload-for-wp2\bullhorn.php on line 67

from bullhorn2wp.

pbearne avatar pbearne commented on June 2, 2024

I am not sure what is going on here

the login that failed dose write the error_log with the actual error

other wise if you have broken set I could debug it

we need to see what the bullhorn api returns at line 147 of bullhorn.php

Hope this helps

Paul

from bullhorn2wp.

siparsons avatar siparsons commented on June 2, 2024

I believe this is a continuation of the issues around keeping the token alive.

Is it possible to detect that there has been an issue using the current token and then attempt a login automatically?

from bullhorn2wp.

pbearne avatar pbearne commented on June 2, 2024

The problem is that we get single use refresh token and if that get messed you have to relogin via WP admin

One of the problem we are seeing with the API is that login server to API servers takes sometime so we can sometimes be quicker than Bullhorn so we pass a new token when Bullhorn is expecting the old one still.

I latest version of the code on github we added a pause into the code to allow bullhorn to sync before we make the next call are you run the new version?

Paul

from bullhorn2wp.

siparsons avatar siparsons commented on June 2, 2024

I am sure I have the latest version, but am still seeing the problem.

I read in the documentation that when each refresh token is used, the response back from the login server includes a new refresh token to use the next time..

If this being stored?

from bullhorn2wp.

pbearne avatar pbearne commented on June 2, 2024

yes we do store this

Pull new copy from here we have just made a lot changes

Paul

from bullhorn2wp.

Related Issues (18)

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.