Skip to content
This repository has been archived by the owner on Dec 3, 2019. It is now read-only.

browscap:update command fail #20

Open
soullivaneuh opened this issue Nov 27, 2017 · 4 comments
Open

browscap:update command fail #20

soullivaneuh opened this issue Nov 27, 2017 · 4 comments

Comments

@soullivaneuh
Copy link
Contributor

On local:

$ ./bin/console browscap:update      

                                                        
  [phpbrowscap\Exception]                               
  Bad datetime format from http://browscap.org/version  

Even worse on CI:

$ ./bin/console browscap:update --env=test

                                                              
  [Symfony\Component\Debug\Exception\ContextErrorException]   
  Warning: syntax error, unexpected '}' in Unknown on line 1  

I still have this env from a while:

sullivan@6674077520e8:/code$ composer show | grep browscap
browscap/browscap-bundle                 dev-master 6071708   Allows you to get browser information
browscap/browscap-php                    2.1.1                Standalone replacement for php's native get_browser() function

And didn't have this error before. It seems to be something wrong with browscap.org. Maybe CloudFlare rules?

Regards.

@mimmi20
Copy link
Member

mimmi20 commented Nov 27, 2017

Yes browscap.org returns a 503 error at the moment.

@maxvi
Copy link

maxvi commented Nov 27, 2017

@mimmi20 , browscap.org are protected by Cloudflare, that's why you get 503 (using script, just try to open via browser)
@soullivaneuh are right, rules should be configured properly

@maxvi
Copy link

maxvi commented Nov 27, 2017

@mimmi20, as a temporary solution you can use
https://github.com/browscap/BrowscapBundle#configuration

browscap:
    update_method: 'local'
    local_file: '/path/to/php_browscap.ini'

@asgrim
Copy link
Member

asgrim commented Nov 27, 2017

See browscap/browscap-php#228

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants