iron-io / iron_mq_php

PHP client for IronMQ.
www.iron.io
BSD 2-Clause "Simplified" License
89 stars 43 forks source link

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

Open igelsomino opened 9 years ago

igelsomino commented 9 years ago

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

thousandsofthem commented 9 years ago

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

igelsomino commented 9 years ago

Thanks

lauriek commented 7 years ago

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.