Handling Long URI Strings

7 views
Skip to first unread message

sam

unread,
Dec 3, 2009, 12:16:20 PM12/3/09
to Social Actions Developers
Hi Jason and Peter,

Thank you for your assistance with the previous issues. It made my job
a lot easier.

Everything seems to be working, but I did run into a new issue while
working with the extended search syntax. The server rejects URI
strings that it deems too long (aka 414 error). Do you know what the
maximum length for a URI string is? Is it possible to make that limit
any larger?

I am currently working on ways to optimize the URI string I send to
the Social Entrepreneur API, but knowing what my limits are would help
me greatly.

Thanks!

-Sam Choi

Jason Mott

unread,
Dec 3, 2009, 1:26:50 PM12/3/09
to social-ac...@googlegroups.com
The default for apache is 8190 bytes, which is pretty large. I'm not
aware of any special setting on this server, but if your request smaller
than that something must be wrong. If it's larger than that, I suppose I
can increase the default setting.

Can you send me the exact url that's failing so I can investigate
further? I want to be sure there isn't an underlying issue with a
request that ought to be valid.
> --
>
> You received this message because you are subscribed to the Google Groups "Social Actions Developers" group.
> To post to this group, send email to social-ac...@googlegroups.com.
> To unsubscribe from this group, send email to social-actions-...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/social-actions-dev?hl=en.
>
>
>

--
Jason Mott
Worker-Owner
Software Engineer

Ronin Tech Collective, Inc.
167 Main St. Suite 103
Brattleboro, VT 05301
888.200.5074 x369
http://www.ronin.coop

sam

unread,
Dec 4, 2009, 8:43:22 PM12/4/09
to Social Actions Developers
Hi Jason,

The bottom of this message is the string I'm trying to send. You'll
see it's quite long, and it can actually get longer if I am trying to
filter out programs IDs.

Thanks!

-Sam Choi

The string I'm trying to send is :

http://search.socialentrepreneurapi.org/entrepreneurs.json?order=program_name&limit=9&page=1&q=+%40region+%22Angola%22+%7C+%40region+%22Benin%22+%7C+%40region+%22Botswana%22+%7C+%40region+%22Burkina+Faso%22+%7C+%40region+%22Burundi%22+%7C+%40region+%22Cameroon%22+%7C+%40region+%22Cape+Verde%22+%7C+%40region+%22Central+African+Republic%22+%7C+%40region+%22Chad%22+%7C+%40region+%22Comoros%22+%7C+%40region+%22Congo+%7BDemocratic+Rep%7D%22+%7C+%40region+%22Congo%22+%7C+%40region+%22Djibouti%22+%7C+%40region+%22Equatorial+Guinea%22+%7C+%40region+%22Eritrea%22+%7C+%40region+%22Ethiopia%22+%7C+%40region+%22Gabon%22+%7C+%40region+%22Gambia%22+%7C+%40region+%22Ghana%22+%7C+%40region+%22Guinea%22+%7C+%40region+%22Guinea-Bissau%22+%7C+%40region+%22Cote+d%27Ivoire%22+%7C+%40region+%22Kenya%22+%7C+%40region+%22Lesotho%22+%7C+%40region+%22Liberia%22+%7C+%40region+%22Madagascar%22+%7C+%40region+%22Malawi%22+%7C+%40region+%22Mali%22+%7C+%40region+%22Mauritania%22+%7C+%40region+%22Mauritius%22+%7C+%40region+%22Mozambique%22+%7C+%40region+%22Namibia%22+%7C+%40region+%22Niger%22+%7C+%40region+%22Nigeria%22+%7C+%40region+%22Rwanda%22+%7C+%40region+%22Sao+Tome+%26+Principe%22+%7C+%40region+%22Senegal%22+%7C+%40region+%22Seychelles%22+%7C+%40region+%22Sierra+Leone%22+%7C+%40region+%22Somalia%22+%7C+%40region+%22South+Africa%22+%7C+%40region+%22Sudan%22+%7C+%40region+%22Swaziland%22+%7C+%40region+%22Tanzania+%28United+Republic+of%29%22+%7C+%40region+%22Gambia%2C+the%22+%7C+%40region+%22Togo%22+%7C+%40region+%22Uganda%22+%7C+%40region+%22Zambia%22+%7C+%40region+%22Zimbabwe%22+%7C%40region+%22Antigua+%26+Barbuda%22+%7C+%40region+%22Argentina%22+%7C+%40region+%22Bahamas%22+%7C+%40region+%22Barbados%22+%7C+%40region+%22Belize%22+%7C+%40region+%22Bolivia%22+%7C+%40region+%22Brazil%22+%7C+%40region+%22Canada%22+%7C+%40region+%22Cayman+Islands%22+%7C+%40region+%22Chile%22+%7C+%40region+%22Colombia%22+%7C+%40region+%22Columbia%22+%7C+%40region+%22Costa+Rica%22+%7C+%40region+%22Cuba%22+%7C+%40region+%22Dominica%22+%7C+%40region+%22Dominican+Republic%22+%7C+%40region+%22Ecuador%22+%7C+%40region+%22El+Salvador%22+%7C+%40region+%22Grenada%22+%7C+%40region+%22Guatemala%22+%7C+%40region+%22Guyana%22+%7C+%40region+%22Haiti%22+%7C+%40region+%22Honduras%22+%7C+%40region+%22Jamaica%22+%7C+%40region+%22Mexico%22+%7C+%40region+%22Netherlands+Antilles%22+%7C+%40region+%22Nicaragua%22+%7C+%40region+%22Panama%22+%7C+%40region+%22Paraguay%22+%7C+%40region+%22Peru%22+%7C+%40region+%22St.+Vincent+%26+the+Grenadines%22+%7C+%40region+%22St+Kitts+%26+Nevis%22+%7C+%40region+%22St+Lucia%22+%7C+%40region+%22Suriname%22+%7C+%40region+%22Trinidad+%26+Tobago%22+%7C+%40region+%22United+States%22+%7C+%40region+%22Uruguay%22+%7C+%40region+%22United+States%22+%7C+%40region+%22US%22+%7C+%40region+%22United+States%22+%7C+%40region+%22U.S.%22+%7C+%40region+%22Venezuela%22+%7C%40region+%22Albania%22+%7C+%40region+%22Andorra%22+%7C+%40region+%22Armenia%22+%7C+%40region+%22Austria%22+%7C+%40region+%22Azerbaijan%22+%7C+%40region+%22Belarus%22+%7C+%40region+%22Belgium%22+%7C+%40region+%22Bosnia+and+Herzegovina%22+%7C+%40region+%22Bulgaria%22+%7C+%40region+%22Croatia%22+%7C+%40region+%22Cyprus%22+%7C+%40region+%22Czech+Republic%22+%7C+%40region+%22Denmark%22+%7C+%40region+%22England%22+%7C+%40region+%22Estonia%22+%7C+%40region+%22European+Union%22+%7C+%40region+%22Finland%22+%7C+%40region+%22France%22+%7C+%40region+%22Georgia%22+%7C+%40region+%22Germany%22+%7C+%40region+%22Greece%22+%7C+%40region+%22Holy+See%22+%7C+%40region+%22Hungary%22+%7C+%40region+%22Iceland%22+%7C+%40region+%22Ireland+%7BRepublic%7D%22+%7C+%40region+%22Italy%22+%7C+%40region+%22Kosovo%22+%7C+%40region+%22Latvia%22+%7C+%40region+%22Liechtenstein%22+%7C+%40region+%22Lithuania%22+%7C+%40region+%22Luxembourg%22+%7C+%40region+%22Macedonia%22+%7C+%40region+%22Malta%22+%7C+%40region+%22Moldova%22+%7C+%40region+%22Monaco%22+%7C+%40region+%22Montenegro%22+%7C+%40region+%22Netherlands%22+%7C+%40region+%22Northern+Ireland%22+%7C+%40region+%22Norway%22+%7C+%40region+%22Poland%22+%7C+%40region+%22Portugal%22+%7C+%40region+%22Romania%22+%7C+%40region+%22Russia%22+%7C+%40region+%22Russian+Federation%22+%7C+%40region+%22Scotland%22+%7C+%40region+%22Serbia%22+%7C+%40region+%22Slovakia%22+%7C+%40region+%22Slovenia%22+%7C+%40region+%22Spain%22+%7C+%40region+%22Sweden%22+%7C+%40region+%22Switzerland%22+%7C+%40region+%22The+Netherlands%22+%7C+%40region+%22Turkey%22+%7C+%40region+%22Ukraine%22+%7C+%40region+%22United+Kingdom%22+%7C+%40region+%22United+Kingdom%22+%7C+%40region+%22U.K.%22+%7C+%40region+%22Vatican+City%22+%7C+%40region+%22United+Kingdom%22+%7C%40region+%22Afghanistan%22+%7C+%40region+%22Bangladesh%22+%7C+%40region+%22Bhutan%22+%7C+%40region+%22East+Timor%22+%7C+%40region+%22India%22+%7C+%40region+%22Kazakhstan%22+%7C+%40region+%22Kyrgyzstan%22+%7C+%40region+%22Maldives%22+%7C+%40region+%22Myanmar%22+%7C+%40region+%22Nepal%22+%7C+%40region+%22Pakistan%22+%7C+%40region+%22Sri+Lanka%22+%7C+%40region+%22Tajikistan%22+%7C+%40region+%22Thailand%22+%7C+%40region+%22Turkmenistan%22+%7C+%40region+%22Uzbekistan%22+%7C+%40region+%22Vietnam%22++%40issue_area+%22Agriculture%22+%7C%40issue_area+%22Internet%2FE-Commerce%22+%7C+%40issue_area+%22Hybrid+Non-Profit%22+%7C+%40issue_area+%22Social+Business%22+%7C+%40issue_area+%22Training+in+Arts+and+Entepreneurship%22+%7C%40issue_area+%22Culture%2F+Handicrafts%22+%7C%40issue_area+%22Enterprise+Development%22+%7C+%40issue_area+%22Financial+Inclusion%22+%7C+%40issue_area+%22Rural+Development%22+%7C%40issue_area+%22disabled+and+education+of+underpriveleged+youth%22+%7C+%40issue_area+%22Train+and+employ+homeless+men%22+%7C+%40issue_area+%22teaching+pertinent+global+challenges%22+%7C+%40issue_area+%22Education%22+%7C+%40issue_area+%22Tutoring+and+vocational+education%22+%7C+%40issue_area+%22Training+in+Arts+and+Entepreneurship%22+%7C%40issue_area+%22%22+%7C%40issue_area+%22Environment%22+%7C%40issue_area+%22Green+micro+finance%22+%7C%40issue_area+%22HIV%2FAids%22+%7C+%40issue_area+%22care+for+elderly%22+%7C+%40issue_area+%22Milk+Banks%22+%7C+%40issue_area+%22Health+and+Wellness%22+%7C+%40issue_area+%22Aids%3A+A+humanitarian+crisis%22+%7C+%40issue_area+%22Health%22+%7C%40issue_area+%22human+trafficking%22+%7C+%40issue_area+%22Empowering+trafficking+victims%22+%7C%40issue_area+%22%22+%7C%40issue_area+%22Non-Profit%22+%7C+%40issue_area+%22donations+to+humanitarian+projects%22+%7C%40issue_area+%22%22+%7C%40issue_area+%22poverty%22+%7C%40issue_area+%22Women%22+
> > For more options, visit this group athttp://groups.google.com/group/social-actions-dev?hl=en.

Jason Mott

unread,
Dec 7, 2009, 12:25:19 PM12/7/09
to social-ac...@googlegroups.com
The string you sent here seems to work for me. What error message are
you getting?
> For more options, visit this group at http://groups.google.com/group/social-actions-dev?hl=en.

sam

unread,
Dec 7, 2009, 1:25:50 PM12/7/09
to Social Actions Developers
Sorry, Google shortened the url in my post when they hyperlinked it.

The URL (minus the http://) is :

search.socialentrepreneurapi.org/entrepreneurs.json%3Forder
%3Dprogram_name%26limit%3D9%26page%3D1%26q%3D%2B%2540region%2B
%2522Angola%2522%2B%257C%2B%2540region%2B%2522Benin%2522%2B%257C%2B
%2540region%2B%2522Botswana%2522%2B%257C%2B%2540region%2B%2522Burkina
%2BFaso%2522%2B%257C%2B%2540region%2B%2522Burundi%2522%2B%257C%2B
%2540region%2B%2522Cameroon%2522%2B%257C%2B%2540region%2B%2522Cape
%2BVerde%2522%2B%257C%2B%2540region%2B%2522Central%2BAfrican%2BRepublic
%2522%2B%257C%2B%2540region%2B%2522Chad%2522%2B%257C%2B%2540region%2B
%2522Comoros%2522%2B%257C%2B%2540region%2B%2522Congo%2B%257BDemocratic
%2BRep%257D%2522%2B%257C%2B%2540region%2B%2522Congo%2522%2B%257C%2B
%2540region%2B%2522Djibouti%2522%2B%257C%2B%2540region%2B
%2522Equatorial%2BGuinea%2522%2B%257C%2B%2540region%2B%2522Eritrea
%2522%2B%257C%2B%2540region%2B%2522Ethiopia%2522%2B%257C%2B%2540region
%2B%2522Gabon%2522%2B%257C%2B%2540region%2B%2522Gambia%2522%2B%257C%2B
%2540region%2B%2522Ghana%2522%2B%257C%2B%2540region%2B%2522Guinea
%2522%2B%257C%2B%2540region%2B%2522Guinea-Bissau%2522%2B%257C%2B
%2540region%2B%2522Cote%2Bd%2527Ivoire%2522%2B%257C%2B%2540region%2B
%2522Kenya%2522%2B%257C%2B%2540region%2B%2522Lesotho%2522%2B%257C%2B
%2540region%2B%2522Liberia%2522%2B%257C%2B%2540region%2B%2522Madagascar
%2522%2B%257C%2B%2540region%2B%2522Malawi%2522%2B%257C%2B%2540region%2B
%2522Mali%2522%2B%257C%2B%2540region%2B%2522Mauritania%2522%2B%257C%2B
%2540region%2B%2522Mauritius%2522%2B%257C%2B%2540region%2B
%2522Mozambique%2522%2B%257C%2B%2540region%2B%2522Namibia%2522%2B%257C
%2B%2540region%2B%2522Niger%2522%2B%257C%2B%2540region%2B%2522Nigeria
%2522%2B%257C%2B%2540region%2B%2522Rwanda%2522%2B%257C%2B%2540region%2B
%2522Sao%2BTome%2B%2526%2BPrincipe%2522%2B%257C%2B%2540region%2B
%2522Senegal%2522%2B%257C%2B%2540region%2B%2522Seychelles%2522%2B%257C
%2B%2540region%2B%2522Sierra%2BLeone%2522%2B%257C%2B%2540region%2B
%2522Somalia%2522%2B%257C%2B%2540region%2B%2522South%2BAfrica%2522%2B
%257C%2B%2540region%2B%2522Sudan%2522%2B%257C%2B%2540region%2B
%2522Swaziland%2522%2B%257C%2B%2540region%2B%2522Tanzania%2B%2528United
%2BRepublic%2Bof%2529%2522%2B%257C%2B%2540region%2B%2522Gambia%252C
%2Bthe%2522%2B%257C%2B%2540region%2B%2522Togo%2522%2B%257C%2B
%2540region%2B%2522Uganda%2522%2B%257C%2B%2540region%2B%2522Zambia
%2522%2B%257C%2B%2540region%2B%2522Zimbabwe%2522%2B%257C%2540region%2B
%2522Antigua%2B%2526%2BBarbuda%2522%2B%257C%2B%2540region%2B
%2522Argentina%2522%2B%257C%2B%2540region%2B%2522Bahamas%2522%2B%257C
%2B%2540region%2B%2522Barbados%2522%2B%257C%2B%2540region%2B%2522Belize
%2522%2B%257C%2B%2540region%2B%2522Bolivia%2522%2B%257C%2B%2540region
%2B%2522Brazil%2522%2B%257C%2B%2540region%2B%2522Canada%2522%2B%257C%2B
%2540region%2B%2522Cayman%2BIslands%2522%2B%257C%2B%2540region%2B
%2522Chile%2522%2B%257C%2B%2540region%2B%2522Colombia%2522%2B%257C%2B
%2540region%2B%2522Columbia%2522%2B%257C%2B%2540region%2B%2522Costa
%2BRica%2522%2B%257C%2B%2540region%2B%2522Cuba%2522%2B%257C%2B
%2540region%2B%2522Dominica%2522%2B%257C%2B%2540region%2B%2522Dominican
%2BRepublic%2522%2B%257C%2B%2540region%2B%2522Ecuador%2522%2B%257C%2B
%2540region%2B%2522El%2BSalvador%2522%2B%257C%2B%2540region%2B
%2522Grenada%2522%2B%257C%2B%2540region%2B%2522Guatemala%2522%2B%257C
%2B%2540region%2B%2522Guyana%2522%2B%257C%2B%2540region%2B%2522Haiti
%2522%2B%257C%2B%2540region%2B%2522Honduras%2522%2B%257C%2B%2540region
%2B%2522Jamaica%2522%2B%257C%2B%2540region%2B%2522Mexico%2522%2B%257C
%2B%2540region%2B%2522Netherlands%2BAntilles%2522%2B%257C%2B%2540region
%2B%2522Nicaragua%2522%2B%257C%2B%2540region%2B%2522Panama%2522%2B%257C
%2B%2540region%2B%2522Paraguay%2522%2B%257C%2B%2540region%2B%2522Peru
%2522%2B%257C%2B%2540region%2B%2522St.%2BVincent%2B%2526%2Bthe
%2BGrenadines%2522%2B%257C%2B%2540region%2B%2522St%2BKitts%2B
%2526%2BNevis%2522%2B%257C%2B%2540region%2B%2522St%2BLucia%2522%2B%257C
%2B%2540region%2B%2522Suriname%2522%2B%257C%2B%2540region%2B
%2522Trinidad%2B%2526%2BTobago%2522%2B%257C%2B%2540region%2B%2522United
%2BStates%2522%2B%257C%2B%2540region%2B%2522Uruguay%2522%2B%257C%2B
%2540region%2B%2522United%2BStates%2522%2B%257C%2B%2540region%2B%2522US
%2522%2B%257C%2B%2540region%2B%2522United%2BStates%2522%2B%257C%2B
%2540region%2B%2522U.S.%2522%2B%257C%2B%2540region%2B%2522Venezuela
%2522%2B%257C%2540region%2B%2522Albania%2522%2B%257C%2B%2540region%2B
%2522Andorra%2522%2B%257C%2B%2540region%2B%2522Armenia%2522%2B%257C%2B
%2540region%2B%2522Austria%2522%2B%257C%2B%2540region%2B%2522Azerbaijan
%2522%2B%257C%2B%2540region%2B%2522Belarus%2522%2B%257C%2B%2540region
%2B%2522Belgium%2522%2B%257C%2B%2540region%2B%2522Bosnia%2Band
%2BHerzegovina%2522%2B%257C%2B%2540region%2B%2522Bulgaria%2522%2B%257C
%2B%2540region%2B%2522Croatia%2522%2B%257C%2B%2540region%2B%2522Cyprus
%2522%2B%257C%2B%2540region%2B%2522Czech%2BRepublic%2522%2B%257C%2B
%2540region%2B%2522Denmark%2522%2B%257C%2B%2540region%2B%2522England
%2522%2B%257C%2B%2540region%2B%2522Estonia%2522%2B%257C%2B%2540region
%2B%2522European%2BUnion%2522%2B%257C%2B%2540region%2B%2522Finland
%2522%2B%257C%2B%2540region%2B%2522France%2522%2B%257C%2B%2540region%2B
%2522Georgia%2522%2B%257C%2B%2540region%2B%2522Germany%2522%2B%257C%2B
%2540region%2B%2522Greece%2522%2B%257C%2B%2540region%2B%2522Holy%2BSee
%2522%2B%257C%2B%2540region%2B%2522Hungary%2522%2B%257C%2B%2540region
%2B%2522Iceland%2522%2B%257C%2B%2540region%2B%2522Ireland%2B
%257BRepublic%257D%2522%2B%257C%2B%2540region%2B%2522Italy%2522%2B%257C
%2B%2540region%2B%2522Kosovo%2522%2B%257C%2B%2540region%2B%2522Latvia
%2522%2B%257C%2B%2540region%2B%2522Liechtenstein%2522%2B%257C%2B
%2540region%2B%2522Lithuania%2522%2B%257C%2B%2540region%2B
%2522Luxembourg%2522%2B%257C%2B%2540region%2B%2522Macedonia%2522%2B
%257C%2B%2540region%2B%2522Malta%2522%2B%257C%2B%2540region%2B
%2522Moldova%2522%2B%257C%2B%2540region%2B%2522Monaco%2522%2B%257C%2B
%2540region%2B%2522Montenegro%2522%2B%257C%2B%2540region%2B
%2522Netherlands%2522%2B%257C%2B%2540region%2B%2522Northern%2BIreland
%2522%2B%257C%2B%2540region%2B%2522Norway%2522%2B%257C%2B%2540region%2B
%2522Poland%2522%2B%257C%2B%2540region%2B%2522Portugal%2522%2B%257C%2B
%2540region%2B%2522Romania%2522%2B%257C%2B%2540region%2B%2522Russia
%2522%2B%257C%2B%2540region%2B%2522Russian%2BFederation%2522%2B%257C%2B
%2540region%2B%2522Scotland%2522%2B%257C%2B%2540region%2B%2522Serbia
%2522%2B%257C%2B%2540region%2B%2522Slovakia%2522%2B%257C%2B%2540region
%2B%2522Slovenia%2522%2B%257C%2B%2540region%2B%2522Spain%2522%2B%257C
%2B%2540region%2B%2522Sweden%2522%2B%257C%2B%2540region%2B
%2522Switzerland%2522%2B%257C%2B%2540region%2B%2522The%2BNetherlands
%2522%2B%257C%2B%2540region%2B%2522Turkey%2522%2B%257C%2B%2540region%2B
%2522Ukraine%2522%2B%257C%2B%2540region%2B%2522United%2BKingdom%2522%2B
%257C%2B%2540region%2B%2522United%2BKingdom%2522%2B%257C%2B%2540region
%2B%2522U.K.%2522%2B%257C%2B%2540region%2B%2522Vatican%2BCity%2522%2B
%257C%2B%2540region%2B%2522United%2BKingdom%2522%2B%257C%2540region%2B
%2522Afghanistan%2522%2B%257C%2B%2540region%2B%2522Bangladesh%2522%2B
%257C%2B%2540region%2B%2522Bhutan%2522%2B%257C%2B%2540region%2B
%2522East%2BTimor%2522%2B%257C%2B%2540region%2B%2522India%2522%2B%257C
%2B%2540region%2B%2522Kazakhstan%2522%2B%257C%2B%2540region%2B
%2522Kyrgyzstan%2522%2B%257C%2B%2540region%2B%2522Maldives%2522%2B%257C
%2B%2540region%2B%2522Myanmar%2522%2B%257C%2B%2540region%2B%2522Nepal
%2522%2B%257C%2B%2540region%2B%2522Pakistan%2522%2B%257C%2B%2540region
%2B%2522Sri%2BLanka%2522%2B%257C%2B%2540region%2B%2522Tajikistan
%2522%2B%257C%2B%2540region%2B%2522Thailand%2522%2B%257C%2B%2540region
%2B%2522Turkmenistan%2522%2B%257C%2B%2540region%2B%2522Uzbekistan
%2522%2B%257C%2B%2540region%2B%2522Vietnam%2522%2B%2B%2540issue_area%2B
%2522Agriculture%2522%2B%257C%2540issue_area%2B%2522Internet%252FE-
Commerce%2522%2B%257C%2B%2540issue_area%2B%2522Hybrid%2BNon-Profit
%2522%2B%257C%2B%2540issue_area%2B%2522Social%2BBusiness%2522%2B%257C
%2B%2540issue_area%2B%2522Training%2Bin%2BArts%2Band%2BEntepreneurship
%2522%2B%257C%2540issue_area%2B%2522Culture%252F%2BHandicrafts%2522%2B
%257C%2540issue_area%2B%2522Enterprise%2BDevelopment%2522%2B%257C%2B
%2540issue_area%2B%2522Financial%2BInclusion%2522%2B%257C%2B
%2540issue_area%2B%2522Rural%2BDevelopment%2522%2B%257C%2540issue_area
%2B%2522disabled%2Band%2Beducation%2Bof%2Bunderpriveleged%2Byouth
%2522%2B%257C%2B%2540issue_area%2B%2522Train%2Band%2Bemploy%2Bhomeless
%2Bmen%2522%2B%257C%2B%2540issue_area%2B%2522teaching%2Bpertinent
%2Bglobal%2Bchallenges%2522%2B%257C%2B%2540issue_area%2B%2522Education
%2522%2B%257C%2B%2540issue_area%2B%2522Tutoring%2Band%2Bvocational
%2Beducation%2522%2B%257C%2B%2540issue_area%2B%2522Training%2Bin%2BArts
%2Band%2BEntepreneurship%2522%2B%257C%2540issue_area%2B%2522%2522%2B
%257C%2540issue_area%2B%2522Environment%2522%2B%257C%2540issue_area%2B
%2522Green%2Bmicro%2Bfinance%2522%2B%257C%2540issue_area%2B%2522HIV
%252FAids%2522%2B%257C%2B%2540issue_area%2B%2522care%2Bfor%2Belderly
%2522%2B%257C%2B%2540issue_area%2B%2522Milk%2BBanks%2522%2B%257C%2B
%2540issue_area%2B%2522Health%2Band%2BWellness%2522%2B%257C%2B
%2540issue_area%2B%2522Aids%253A%2BA%2Bhumanitarian%2Bcrisis%2522%2B
%257C%2B%2540issue_area%2B%2522Health%2522%2B%257C%2540issue_area%2B
%2522human%2Btrafficking%2522%2B%257C%2B%2540issue_area%2B
%2522Empowering%2Btrafficking%2Bvictims%2522%2B%257C%2540issue_area%2B
%2522%2522%2B%257C%2540issue_area%2B%2522Non-Profit%2522%2B%257C%2B
%2540issue_area%2B%2522donations%2Bto%2Bhumanitarian%2Bprojects%2522%2B
%257C%2540issue_area%2B%2522%2522%2B%257C%2540issue_area%2B%2522poverty
%2522%2B%257C%2540issue_area%2B%2522Women%2522%2B

It should start from "search.socialentrepreneurapi.org/" and end with
"40issue_area%2B%2522Women%2522%2B"

The response I receive is :

"Request-URI Too Large

The requested URL's length exceeds the capacity limit for this
server."

Thanks!

-Sam Choi



On Dec 7, 9:25 am, Jason Mott <jm...@ronin.coop> wrote:
> The string you sent here seems to work for me. What error message are
> you getting?
>
> sam wrote:
> > Hi Jason,
>
> > The bottom of this message is the string I'm trying to send. You'll
> > see it's quite long, and it can actually get longer if I am trying to
> > filter out programs IDs.
>
> > Thanks!
>
> > -Sam Choi
>
> > The string I'm trying to send is :
>
> >http://search.socialentrepreneurapi.org/entrepreneurs.json?order=prog...

Jason Mott

unread,
Dec 7, 2009, 2:06:13 PM12/7/09
to social-ac...@googlegroups.com
OK, this string was 12k while the Apache's default limit was 8k. I've
increased the limit to 40k and it seems to be working.

However, the string you've provided has the query string characters
(?,&,=) url encoded and thus is doesn't really do the search as is here,
but it doesn't fail at uri length anymore.
> For more options, visit this group at http://groups.google.com/group/social-actions-dev?hl=en.

sam

unread,
Jan 8, 2010, 9:27:40 PM1/8/10
to Social Actions Developers
Hi Jason,

So after playing around withe the API some more we ran into another
URL problem, which we can only determine as being caused by too long
of a URL string. This time, however, the error appears to be returning
a page that says:

undefined method `/' for nil:NilClass

The shortened url we are trying to hit is: http://tiny.cc/XEY1K . The
full version is at the end of this message.
After much trial and error, it appears that when we shorten the url,
by arbitrarily removing some parameters, the url will eventually
return some results, but as is, there appears to be a problem.

Thanks again for any help!

-Sam Choi

http://search.socialentrepreneurapi.org/entrepreneurs.json?just_stats=1&&sites=647142596,228845959,422552095,288863240&order=&limit=9&page=1&q=+@region+"Angola"+|+@region+"Benin"+|+@region+"Botswana"+|+@region+"Burkina+Faso"+|+@region+"Burundi"+|+@region+"Cameroon"+|+@region+"Cape+Verde"+|+@region+"Central+African+Republic"+|+@region+"Chad"+|+@region+"Comoros"+|+@region+"Congo+{Democratic+Rep}"+|+@region+"Congo"+|+@region+"Djibouti"+|+@region+"Equatorial+Guinea"+|+@region+"Eritrea"+|+@region+"Ethiopia"+|+@region+"Gabon"+|+@region+"Gambia"+|+@region+"Ghana"+|+@region+"Guinea"+|+@region+"Guinea-Bissau"+|+@region+"Cote+d'Ivoire"+|+@region+"Kenya"+|+@region+"Lesotho"+|+@region+"Liberia"+|+@region+"Madagascar"+|+@region+"Malawi"+|+@region+"Mali"+|+@region+"Mauritania"+|+@region+"Mauritius"+|+@region+"Mozambique"+|+@region+"Namibia"+|+@region+"Niger"+|+@region+"Nigeria"+|+@region+"Rwanda"+|+@region+"Sao+Tome+%26+Principe"+|+@region+"Senegal"+|+@region+"Seychelles"+|+@region+"Sierra+Leone"+|+@region+"Somalia"+|+@region+"South+Africa"+|+@region+"Sudan"+|+@region+"Swaziland"+|+@region+"Tanzania+(United+Republic+of)"+|+@region+"Gambia,+the"+|+@region+"Togo"+|+@region+"Uganda"+|+@region+"Zambia"+|+@region+"Zimbabwe"+|+@region+"Africa"+|+@region+"Australia"+|+@region+"Brunei"+|+@region+"Myanmar"+|+@region+"Burma"+|+@region+"Cambodia"+|+@region+"China"+|+@region+"Fiji"+|+@region+"Indonesia"+|+@region+"Japan"+|+@region+"Kiribati"+|+@region+"Korea+North"+|+@region+"Korea+South"+|+@region+"Laos"+|+@region+"Malaysia"+|+@region+"Marshall+Islands"+|+@region+"Micronesia"+|+@region+"Mongolia"+|+@region+"Nauru"+|+@region+"New+Zealand"+|+@region+"Palau"+|+@region+"Papua+New+Guinea"+|+@region+"Philippines"+|+@region+"Samoa"+|+@region+"San+Marino"+|+@region+"Singapore"+|+@region+"Solomon+Islands"+|+@region+"Taiwan"+|+@region+"Tonga"+|+@region+"Tuvalu"+|+@region+"Vanuatu"+|+@region+"Asia"+|+@region+"Albania"+|+@region+"Andorra"+|+@region+"Armenia"+|+@region+"Austria"+|+@region+"Azerbaijan"+|+@region+"Belarus"+|+@region+"Belgium"+|+@region+"Bosnia+and+Herzegovina"+|+@region+"Bulgaria"+|+@region+"Croatia"+|+@region+"Cyprus"+|+@region+"Czech+Republic"+|+@region+"Denmark"+|+@region+"England"+|+@region+"Estonia"+|+@region+"European+Union"+|+@region+"Finland"+|+@region+"France"+|+@region+"Georgia"+|+@region+"Germany"+|+@region+"Greece"+|+@region+"Holy+See"+|+@region+"Hungary"+|+@region+"Iceland"+|+@region+"Ireland+{Republic}"+|+@region+"Italy"+|+@region+"Kosovo"+|+@region+"Latvia"+|+@region+"Liechtenstein"+|+@region+"Lithuania"+|+@region+"Luxembourg"+|+@region+"Macedonia"+|+@region+"Malta"+|+@region+"Moldova"+|+@region+"Monaco"+|+@region+"Montenegro"+|+@region+"Netherlands"+|+@region+"Northern+Ireland"+|+@region+"Norway"+|+@region+"Poland"+|+@region+"Portugal"+|+@region+"Romania"+|+@region+"Russia"+|+@region+"Russian+Federation"+|+@region+"Scotland"+|+@region+"Serbia"+|+@region+"Slovakia"+|+@region+"Slovenia"+|+@region+"Spain"+|+@region+"Sweden"+|+@region+"Switzerland"+|+@region+"The+Netherlands"+|+@region+"Turkey"+|+@region+"Ukraine"+|+@region+"United+Kingdom"+|+@region+"United+Kingdom"+|+@region+"U.K."+|+@region+"Vatican+City"+|+@region+"United+Kingdom"+|+@region+"Asia"+|+@region+"Algeria"+|+@region+"Bahrain"+|+@region+"Egypt"+|+@region+"Gaza"+|+@region+"Iran"+|+@region+"Iraq"+|+@region+"Israel"+|+@region+"Jordan"+|+@region+"Kuwait"+|+@region+"Lebanon"+|+@region+"Libya"+|+@region+"Morocco"+|+@region+"Oman"+|+@region+"Palestinian+Territories"+|+@region+"Qatar"+|+@region+"Saudi+Arabia"+|+@region+"Syria"+|+@region+"Tunisia"+|+@region+"United+Arab+Emirates"+|+@region+"UAE"+|+@region+"West+Bank"+|+@region+"Yemen"+|+@region+"Middle+East"+|+@region+"Afghanistan"+|+@region+"Bangladesh"+|+@region+"Bhutan"+|+@region+"East+Timor"+|+@region+"India"+|+@region+"Kazakhstan"+|+@region+"Kyrgyzstan"+|+@region+"Maldives"+|+@region+"Myanmar"+|+@region+"Nepal"+|+@region+"Pakistan"+|+@region+"Sri+Lanka"+|+@region+"Tajikistan"+|+@region+"Thailand"+|+@region+"Turkmenistan"+|+@region+"Uzbekistan"+|+@region+"Vietnam"+|+@region+"Asia"+@issue_area+"Agriculture"+|+@issue_area+"Internet/E-Commerce"+|+@issue_area+"Hybrid+Non-Profit"+|+@issue_area+"Social+Business"+|+@issue_area+"Training+in+Arts+and+Entepreneurship"+|+@issue_area+"Culture/+Handicrafts"+|+@issue_area+"Enterprise+Development"+|+@issue_area+"Financial+Inclusion"+|+@issue_area+"Rural+Development"+|+@issue_area+"disabled+and+education+of+underpriveleged+youth"+|+@issue_area+"Train+and+employ+homeless+men"+|+@issue_area+"teaching+pertinent+global+challenges"+|+@issue_area+"Education"+|+@issue_area+"Tutoring+and+vocational+education"+|+@issue_area+"Training+in+Arts+and+Entepreneurship"+|+@issue_area+"Environment"+|+@issue_area+"Green+micro+finance"+|+@issue_area+"HIV/Aids"+|+@issue_area+"care+for+elderly"+|+@issue_area+"Milk+Banks"+|+@issue_area+"Health+and+Wellness"+|+@issue_area+"Aids:+A+humanitarian+crisis"+|+@issue_area+"Health"+|+@issue_area+"human+trafficking"+|+@issue_area+"Empowering+trafficking+victims"+|+@issue_area+"Non-Profit"+|+@issue_area+"donations+to+humanitarian+projects"+|+@issue_area+"poverty"

> ...
>
> read more »

Peter Deitz

unread,
Jan 15, 2010, 11:15:36 AM1/15/10
to social-ac...@googlegroups.com
Hi Sam,

I'm wondering if there are some upgrades we can make to the Social
Entrepreneur API itself to avoid having to submit these super-long queries.

From your experience working with the SEAPI, can you share some
suggestions on how it could be improved?

All the best,
Peter

Social Actions
http://socialactions.com

Reply all
Reply to author
Forward
0 new messages