Re: [Factor-talk] with-http-request* sometimes fails

2018-09-07 Thread John Benediktsson
It's a crappy error message for sure!

Comes from not having a port specified, and the URL doesn't have a protocol
so it doesn't default to 80.

IN: scratchpad URL" /https://fussballimtv.de;
describe
url
protocol f
username f
password f
host f
port f
path "/https://fussballimtv.de;
queryf
anchor   f


So it eventually tries to create an inet4 like this:

IN: scratchpad "0.0.0.0" f 
Bad store to specialized slot
value f
class integer


Not the best error message, maybe we can clean this up, or error earlier in
that API.







On Thu, Sep 6, 2018 at 12:50 AM Georg Simon  wrote:

> Blush. Thank you
>
> Am Wed, 05 Sep 2018 19:31:54 +0300
> schrieb Alexander Ilin :
>
> > Hello!
> >
> >   Have you tried removing the leading slash before the "https://;?
> >
> > 05.09.2018, 16:05, "Georg Simon" :
> > > As it seems there are websites that make
> > >
> > >  with-http-request*
> > >
> > > throw an error :
> > >
> > > IN: scratchpad USING: http.client ;
> > >
> > > With
> > > "/https://fussballimtv.de;  [ . ] with-http-request* .
> > >
> > > I get the error "Bad store to specialized slot".
> > >
> > > With
> > > "http://factorcode.org;  [ . ] with-http-request* .
> > >
> > > all works fine.
> > >
> > > Is there a way to avoid the error ?
> > >
> > >
> --
> > > Check out the vibrant tech community on one of the world's most
> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > > ___
> > > Factor-talk mailing list
> > > Factor-talk@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/factor-talk
> >
> > ---=---
> >  Александр
> >
> >
> >
> --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > ___
> > Factor-talk mailing list
> > Factor-talk@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/factor-talk
>
>
>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] with-http-request* sometimes fails

2018-09-06 Thread Georg Simon
Blush. Thank you

Am Wed, 05 Sep 2018 19:31:54 +0300
schrieb Alexander Ilin :

> Hello!
> 
>   Have you tried removing the leading slash before the "https://;?
> 
> 05.09.2018, 16:05, "Georg Simon" :
> > As it seems there are websites that make
> >
> >  with-http-request*
> >
> > throw an error :
> >
> > IN: scratchpad USING: http.client ;
> >
> > With
> > "/https://fussballimtv.de;  [ . ] with-http-request* .
> >
> > I get the error "Bad store to specialized slot".
> >
> > With
> > "http://factorcode.org;  [ . ] with-http-request* .
> >
> > all works fine.
> >
> > Is there a way to avoid the error ?
> >
> > --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > ___
> > Factor-talk mailing list
> > Factor-talk@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/factor-talk  
> 
> ---=--- 
>  Александр
> 
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] with-http-request* sometimes fails

2018-09-05 Thread Alexander Ilin
Hello!

  Have you tried removing the leading slash before the "https://;?

05.09.2018, 16:05, "Georg Simon" :
> As it seems there are websites that make
>
>  with-http-request*
>
> throw an error :
>
> IN: scratchpad USING: http.client ;
>
> With
> "/https://fussballimtv.de;  [ . ] with-http-request* .
>
> I get the error "Bad store to specialized slot".
>
> With
> "http://factorcode.org;  [ . ] with-http-request* .
>
> all works fine.
>
> Is there a way to avoid the error ?
>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk

---=--- 
 Александр


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk