iron_mq_php icon indicating copy to clipboard operation
iron_mq_php copied to clipboard

IronCore\HttpException Object ( [message:protected] => http error: 401 | {"msg":"Invalid project/token combination"}

Open igelsomino opened this issue 9 years ago • 3 comments

Recently we've update library to version 4.0.0

We've modify the code with:

// The call looks like

        $ironmq = new \IronMQ\IronMQ(array(
            "token" => "xxx",
            "project_id" => "xxx",
        ) );

but the system response:

IronCore\HttpException Object ( [message:protected] => http error: 401 | {"msg":"Invalid project/token combination"}

What is happening?

Thanks

igelsomino avatar Jul 15 '15 09:07 igelsomino

See https://github.com/iron-io/iron_mq_php#branches You do need version 2.x. Library version 4.0.0 intended to be used in conjunction with IronMQv3 which consumes own token/project_id combinations

thousandsofthem avatar Jul 15 '15 09:07 thousandsofthem

Thanks

igelsomino avatar Jul 15 '15 10:07 igelsomino

Has Iron done something which has permanently broken the Laravel 4.2 queue stuff, because I cannot get this to work any more on either IronMQ V2 or V3 queues.

I only ever get the error message in the original post, when I either try to add a queue subscriber or push anything to the queue. I've tried V1.* and V3.* of the library and no difference. I've checked my Laravel queue config values are correct, they appear to tie up with my Iron queues.

I notice on the Iron site I can no longer go to settings for a V2 queue. but as I say I've tried this with a V3 queue and the appropriate library version and still no good.

What am I missing?

Edited to add: This was working fine until 2-3 weeks ago.

lauriek avatar Oct 12 '16 17:10 lauriek