[OpenSIPS-Users] [OpenSIPS-Devel] New OpenXCAP release 1.2.1

CheeWii quanwei87 at gmail.com
Wed Jul 7 12:52:16 CEST 2010


Hi,

  I am not sure.  But I found a new clue, hope it is useful to you.

  Though both situations (use http_proxy or not) have "similiar" errors,but
there is a little difference for the error reports.

  If I use http_proxy:

  root at shenhua-ims:~# xcap-icon
Traceback (most recent call last):
  File "/usr/local/bin/xcap-icon", line 25, in <module>
    from sipsimple.payloads.icon import Icon, Data
  File "/usr/lib/pymodules/python2.6/sipsimple/payloads/icon.py", line 41,
in <module>
    class Icon(XMLRootElement):
  File "/usr/lib/pymodules/python2.6/sipsimple/payloads/__init__.py", line
418, in __init__
    cls._xml_schema =
etree.XMLSchema(etree.parse(open(os.path.join(cls._xml_schema_dir,
cls._xml_schema_file), 'r')))
  File "xmlschema.pxi", line 85, in lxml.etree.XMLSchema.__init__
(src/lxml/lxml.etree.c:101873)
lxml.etree.XMLSchemaParseError: failed to load HTTP resource

And if I unset http_proxy:

root at shenhua-ims:~# xcap-icon
Traceback (most recent call last):
  File "/usr/local/bin/xcap-icon", line 25, in <module>
    from sipsimple.payloads.icon import Icon, Data
  File "/usr/lib/pymodules/python2.6/sipsimple/payloads/icon.py", line 41,
in <module>
    class Icon(XMLRootElement):
  File "/usr/lib/pymodules/python2.6/sipsimple/payloads/__init__.py", line
418, in __init__
    cls._xml_schema =
etree.XMLSchema(etree.parse(open(os.path.join(cls._xml_schema_dir,
cls._xml_schema_file), 'r')))
  File "xmlschema.pxi", line 85, in lxml.etree.XMLSchema.__init__
(src/lxml/lxml.etree.c:101873)
lxml.etree.XMLSchemaParseError: Operation in progress
root at shenhua-ims:~#

I notice that the first is "failed to load HTTP resource " , but the second
is "Operation in progress ".


Hope this is useful, thanks for your reply~~


CheeWii




2010/7/7 Adrian Georgescu <ag at ag-projects.com>

> The http client needs to fetch the schema to check the document against
> from w3c. Maybe this fails though is not obvious.
>
> Adrian
>
>
>   On Jul 7, 2010, at 10:36 AM, CheeWii wrote:
>
>   Hi Saúl,
>
>     Thanks for your reply ,but I'm  afraid that http_proxy is not the root
> of this problem.
>
>     Because I have do the same test:
>
>     root at shenhua-ims:~# unset http_proxy
>     root at shenhua-ims:~# unset HTTP_PROXY
>     root at shenhua-ims:~# echo $http_proxy
>
>     root at shenhua-ims:~# echo $HTTP_PROXY
>
>     root at shenhua-ims:~#
>
>     root at shenhua-ims:~# xcap-icon
> Traceback (most recent call last):
>   File "/usr/local/bin/xcap-icon", line 25, in <module>
>     from sipsimple.payloads.icon import Icon, Data
>   File "/usr/lib/pymodules/python2.6/sipsimple/payloads/icon.py", line 41,
> in <module>
>     class Icon(XMLRootElement):
>   File "/usr/lib/pymodules/python2.6/sipsimple/payloads/__init__.py", line
> 418, in __init__
>     cls._xml_schema =
> etree.XMLSchema(etree.parse(open(os.path.join(cls._xml_schema_dir,
> cls._xml_schema_file), 'r')))
>   File "xmlschema.pxi", line 85, in lxml.etree.XMLSchema.__init__
> (src/lxml/lxml.etree.c:101873)
> lxml.etree.XMLSchemaParseError: Operation in progress
> root at shenhua-ims:~#
>
> So, I think whether it is related to my XCAP-ROOT, because xcap-icon cannot
> connect to my xcap server. And I don't know how a http_proxy can impact
> xcap-icon function.
>
>
> This is my sipsimpleclient configuration, you can use it to have a test.
>
> Accounts:
>     10000 at 202.204.22.248:
>         enabled = true
>         auth:
>             password = 10000
>         xcap:
>             xcap_root = "http://202.204.22.248/xcap-root"
>
>
> CheeWii
>
>
>
> 2010/7/7 Saúl Ibarra Corretgé <saul at ag-projects.com>
>
>> Hi,
>>
>
>
>> This is it. I just replicated your setup environment (with an HTTP
>> proxy) and get the error:
>>
>> saghul at ubuntu:~$ xcap-icon
>> Traceback (most recent call last):
>>   File "/usr/bin/xcap-icon", line 25, in <module>
>>     from sipsimple.payloads.icon import Icon, Data
>>   File "/usr/lib/pymodules/python2.6/sipsimple/payloads/icon.py", line
>> 41, in <module>
>>     class Icon(XMLRootElement):
>>   File "/usr/lib/pymodules/python2.6/sipsimple/payloads/__init__.py",
>> line 418, in __init__
>>     cls._xml_schema =
>> etree.XMLSchema(etree.parse(open(os.path.join(cls._xml_schema_dir,
>> cls._xml_schema_file), 'r')))
>>   File "xmlschema.pxi", line 85, in lxml.etree.XMLSchema.__init__
>> (src/lxml/lxml.etree.c:101873)
>> lxml.etree.XMLSchemaParseError: failed to load HTTP resource
>> saghul at ubuntu:~$ unset HTTP_PROXY
>> saghul at ubuntu:~$
>> saghul at ubuntu:~$
>> saghul at ubuntu:~$
>> saghul at ubuntu:~$ xcap-icon
>> You need to specify the opperation: GET, PUT or DELETE
>> saghul at ubuntu:~$
>>
>>  _______________________________________________
>>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100707/803c6973/attachment-0001.htm 


More information about the Users mailing list