SubscriptOutOfBounds using ZnClient in Pharo 1.4
Hi list, I'm using Pharo1.4 Latest update: #14457 with CogVM 4.0.0 from 7/2012. The below http get used to work with previous versions of Zinc components, but it doesn't work anymore. I need to retrieve a XML returned by the following URL: http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=nuccore&retmode=... (the URL is ok, pasting in Firefox retrieves the XML, the service is described here http://www.ncbi.nlm.nih.gov/books/NBK25500/) but doing ZnClient new get: ' http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=nuccore&retmode=... '. answer: SubscriptOutOfBounds: 4097 I've tried with a clean image and it fails too. Any help or fix out there? I'm willing to try other HTTP clients too. Hernán
Hi Hernán, I am having a look right now. It does work in my current 2.0 development image, I can even parse the XML without any problem: I'll see what my 1.4 image does⦠I hope you are not behind a proxy, are you ? ;-) Sven On 19 Dec 2012, at 18:18, Hernán Morales Durand <hernan.morales@gmail.com> wrote:
Hi list, I'm using Pharo1.4 Latest update: #14457 with CogVM 4.0.0 from 7/2012. The below http get used to work with previous versions of Zinc components, but it doesn't work anymore. I need to retrieve a XML returned by the following URL:
http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=nuccore&retmode=... (the URL is ok, pasting in Firefox retrieves the XML, the service is described here http://www.ncbi.nlm.nih.gov/books/NBK25500/)
but doing
ZnClient new get: 'http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=nuccore&retmode=...'.
answer: SubscriptOutOfBounds: 4097
I've tried with a clean image and it fails too. Any help or fix out there? I'm willing to try other HTTP clients too.
Hernán
-- Sven Van Caekenberghe http://stfx.eu Smalltalk is the Red Pill
Hernán, On 19 Dec 2012, at 19:04, Sven Van Caekenberghe <sven@stfx.eu> wrote:
I'll see what my 1.4 image doesâ¦
OK, this is a bug that was fixed in the beginning of August: ==== Name: Zinc-HTTP-SvenVanCaekenberghe.291 Author: SvenVanCaekenberghe Time: 2 August 2012, 11:26:02.302 am UUID: 3d8c50cd-2d7b-459f-89f3-b77a23dccfdd Ancestors: Zinc-HTTP-SvenVanCaekenberghe.290 various fixes to ZnChunkedReadStream>>#readInto:startingAt:count: (thx Chris Bailey for reporting the problem); added ZnLimitedReadStream>>#nextInto: as it is used by Fuel ===== One way to upgrade is loading ConfigurationOfZincHTTPComponents from MCHttpRepository location: 'http://mc.stfx.eu/ZincHTTPComponents' user: '' password: '' by doing ConfigurationOfZincHTTPComponents load This will not load the very latest version, but a MetacelloFetchingMCSpecLoader(linear load : linear load : 1.8.2 [ConfigurationOfZincHTTPComponents] load : Zinc-FileSystem-Legacy-SvenVanCaekenberghe.3 load : Zinc-Pharo-Forward-Compatibility-SvenVanCaekenberghe.1 load : Zinc-HTTP-SvenVanCaekenberghe.300 load : Zinc-Tests-SvenVanCaekenberghe.155 load : Zinc-Patch-HTTPSocket-SvenVanCaekenberghe.1) which is enough to fix the problem in 1.4 (I tested it). But this does not give you all green tests for Zn (stable for 1.4 is outdated apparently). BTW, the latest Zinc-HTTP for Pharo 2.0 is 328. You could also try ConfigurationOfZincHTTPComponents project latestVersion load. which loads a MetacelloFetchingMCSpecLoader(linear load : linear load : 2.1 [ConfigurationOfZincHTTPComponents] load : Zinc-Character-Encoding-Core-SvenVanCaekenberghe.2 load : Zinc-Resource-Meta-Core-SvenVanCaekenberghe.3 load : Zinc-HTTP-SvenVanCaekenberghe.328 load : Zinc-Tests-SvenVanCaekenberghe.169) and does give all green tests. HTH, Sven -- Sven Van Caekenberghe http://stfx.eu Smalltalk is the Red Pill
Hi Sven, Thanks for your quick answer. Finally I was able to fix the request in 1.4 by loading the latest ConfigurationOf from http://mc.stfx.eu/ZincHTTPComponents. For now I only use Pharo 1.4 but I hope to test it in the future using the 2.0 enhacements. Best regards, Hernán 2012/12/19 Sven Van Caekenberghe <sven@stfx.eu>
Hernán,
On 19 Dec 2012, at 19:04, Sven Van Caekenberghe <sven@stfx.eu> wrote:
I'll see what my 1.4 image doesâ¦
OK, this is a bug that was fixed in the beginning of August:
==== Name: Zinc-HTTP-SvenVanCaekenberghe.291 Author: SvenVanCaekenberghe Time: 2 August 2012, 11:26:02.302 am UUID: 3d8c50cd-2d7b-459f-89f3-b77a23dccfdd Ancestors: Zinc-HTTP-SvenVanCaekenberghe.290
various fixes to ZnChunkedReadStream>>#readInto:startingAt:count: (thx Chris Bailey for reporting the problem); added ZnLimitedReadStream>>#nextInto: as it is used by Fuel =====
One way to upgrade is loading ConfigurationOfZincHTTPComponents from
MCHttpRepository location: 'http://mc.stfx.eu/ZincHTTPComponents' user: '' password: ''
by doing
ConfigurationOfZincHTTPComponents load
This will not load the very latest version, but
a MetacelloFetchingMCSpecLoader(linear load : linear load : 1.8.2 [ConfigurationOfZincHTTPComponents] load : Zinc-FileSystem-Legacy-SvenVanCaekenberghe.3 load : Zinc-Pharo-Forward-Compatibility-SvenVanCaekenberghe.1 load : Zinc-HTTP-SvenVanCaekenberghe.300 load : Zinc-Tests-SvenVanCaekenberghe.155 load : Zinc-Patch-HTTPSocket-SvenVanCaekenberghe.1)
which is enough to fix the problem in 1.4 (I tested it). But this does not give you all green tests for Zn (stable for 1.4 is outdated apparently).
BTW, the latest Zinc-HTTP for Pharo 2.0 is 328. You could also try
ConfigurationOfZincHTTPComponents project latestVersion load.
which loads
a MetacelloFetchingMCSpecLoader(linear load : linear load : 2.1 [ConfigurationOfZincHTTPComponents] load : Zinc-Character-Encoding-Core-SvenVanCaekenberghe.2 load : Zinc-Resource-Meta-Core-SvenVanCaekenberghe.3 load : Zinc-HTTP-SvenVanCaekenberghe.328 load : Zinc-Tests-SvenVanCaekenberghe.169)
and does give all green tests.
HTH,
Sven
-- Sven Van Caekenberghe http://stfx.eu Smalltalk is the Red Pill
Thank you for reporting the problem, now we know that we have to pay attention to the Zinc version in 1.4 as it is getting a bit old. On 19 Dec 2012, at 21:07, Hernán Morales Durand <hernan.morales@gmail.com> wrote:
Hi Sven,
Thanks for your quick answer. Finally I was able to fix the request in 1.4 by loading the latest ConfigurationOf from http://mc.stfx.eu/ZincHTTPComponents. For now I only use Pharo 1.4 but I hope to test it in the future using the 2.0 enhacements. Best regards,
Hernán
2012/12/19 Sven Van Caekenberghe <sven@stfx.eu> Hernán,
On 19 Dec 2012, at 19:04, Sven Van Caekenberghe <sven@stfx.eu> wrote:
I'll see what my 1.4 image doesâ¦
OK, this is a bug that was fixed in the beginning of August:
==== Name: Zinc-HTTP-SvenVanCaekenberghe.291 Author: SvenVanCaekenberghe Time: 2 August 2012, 11:26:02.302 am UUID: 3d8c50cd-2d7b-459f-89f3-b77a23dccfdd Ancestors: Zinc-HTTP-SvenVanCaekenberghe.290
various fixes to ZnChunkedReadStream>>#readInto:startingAt:count: (thx Chris Bailey for reporting the problem); added ZnLimitedReadStream>>#nextInto: as it is used by Fuel =====
One way to upgrade is loading ConfigurationOfZincHTTPComponents from
MCHttpRepository location: 'http://mc.stfx.eu/ZincHTTPComponents' user: '' password: ''
by doing
ConfigurationOfZincHTTPComponents load
This will not load the very latest version, but
a MetacelloFetchingMCSpecLoader(linear load : linear load : 1.8.2 [ConfigurationOfZincHTTPComponents] load : Zinc-FileSystem-Legacy-SvenVanCaekenberghe.3 load : Zinc-Pharo-Forward-Compatibility-SvenVanCaekenberghe.1 load : Zinc-HTTP-SvenVanCaekenberghe.300 load : Zinc-Tests-SvenVanCaekenberghe.155 load : Zinc-Patch-HTTPSocket-SvenVanCaekenberghe.1)
which is enough to fix the problem in 1.4 (I tested it). But this does not give you all green tests for Zn (stable for 1.4 is outdated apparently).
BTW, the latest Zinc-HTTP for Pharo 2.0 is 328. You could also try
ConfigurationOfZincHTTPComponents project latestVersion load.
which loads
a MetacelloFetchingMCSpecLoader(linear load : linear load : 2.1 [ConfigurationOfZincHTTPComponents] load : Zinc-Character-Encoding-Core-SvenVanCaekenberghe.2 load : Zinc-Resource-Meta-Core-SvenVanCaekenberghe.3 load : Zinc-HTTP-SvenVanCaekenberghe.328 load : Zinc-Tests-SvenVanCaekenberghe.169)
and does give all green tests.
HTH,
Sven
-- Sven Van Caekenberghe http://stfx.eu Smalltalk is the Red Pill
participants (2)
-
Hernán Morales Durand -
Sven Van Caekenberghe