movebank / movebank-api-doc

Description of download interface to build calls to the Movebank database using HTTP/CSV or JSON/JavaScript requests
138 stars 19 forks source link

Too long URI #8

Open bart1 opened 3 years ago

bart1 commented 3 years ago

@sarahcd I get an error where the api url requested is too long, this is the cause for an error reported by d douglas. This is the error message: The requested URL's length exceeds the capacity limit for this server.. The url I'm requesting contains a lot of individual ids: https://www.movebank.org/movebank/service/direct-read?entity_type=individual&study_id=1420256397&id=1420260456%2C1420260457%2C1420260458%2C1420260459%2C1420260460%2C1420260461%2C1420260462%2C1420260463%2C1420260464%2C1420260465%2C1420260466%2C1420260467%2C1420260468%2C1420260469%2C1420260470%2C1420260471%2C1420260472%2C1420260473%2C1420260474%2C1420260475%2C1420260476%2C1420260477%2C1420260478%2C1420260479%2C1420260480%2C1420260481%2C1420260482%2C1420260483%2C1420260484%2C1420260485%2C1420260486%2C1420260487%2C1420260488%2C1420260489%2C1420260490%2C1420260491%2C1420260492%2C1420260493%2C1420260494%2C1420260495%2C1420260496%2C1420260497%2C1420260498%2C1420260499%2C1420260500%2C1420260501%2C1420260502%2C1420260503%2C1420260504%2C1420260505%2C1420260506%2C1420260507%2C1420260508%2C1420260509%2C1420260510%2C1420260511%2C1420260512%2C1420260513%2C1420260514%2C1420260515%2C1420260516%2C1420260517%2C1420260518%2C1420260519%2C1420260520%2C1420260521%2C1420260522%2C1420260523%2C1420260524%2C1420260525%2C1420260526%2C1420260527%2C1420260528%2C1420260529%2C1420260530%2C1420260531%2C1420260532%2C1420260533%2C1420260534%2C1420260535%2C1420260536%2C1420260537%2C1420260538%2C1420260539%2C1420260540%2C1420260541%2C1420260542%2C1420260543%2C1420260544%2C1420260545%2C1420260546%2C1420260547%2C1420260548%2C1420260549%2C1420260550%2C1420260551%2C1420260552%2C1420260553%2C1420260554%2C1420260555%2C1420260556%2C1420260557%2C1420260558%2C1420260559%2C1420260560%2C1420260561%2C1420260562%2C1420260563%2C1420260564%2C1420260565%2C1420260566%2C1420260567%2C1420260568%2C1420260569%2C1420260570%2C1420260571%2C1420260572%2C1420260573%2C1420260574%2C1420260575%2C1420260576%2C1420260577%2C1420260578%2C1420260579%2C1420260580%2C1420260581%2C1420260582%2C1420260583%2C1420260584%2C1420260585%2C1420260586%2C1420260587%2C1420260588%2C1420260589%2C1420260590%2C1420260591%2C1420260592%2C1420260593%2C1420260594%2C1420260595%2C1420260596%2C1420260597%2C1420260598%2C1420260599%2C1420260600%2C1420260601%2C1420260602%2C1420260603%2C1420260604%2C1420260605%2C1420260606%2C1420260607%2C1420260608%2C1420260609%2C1420260610%2C1420260611%2C1420260612%2C1420260613%2C1420260614%2C1420260615%2C1420260616%2C1420260617%2C1420260618%2C1420260619%2C1420260620%2C1420260621%2C1420260622%2C1420260623%2C1420260624%2C1420260625%2C1420260626%2C1420260627%2C1420260628%2C1420260629%2C1420260630%2C1420260631%2C1420260632%2C1420260633%2C1420260634%2C1420260635%2C1420260636%2C1420260637%2C1420260638%2C1420260639%2C1420260640%2C1420260641%2C1420260642%2C1420260643%2C1420260644%2C1420260645%2C1420260646%2C1420260647%2C1420260648%2C1420260649%2C1420260650%2C1420260651%2C1420260652%2C1420260653%2C1420260654%2C1420260655%2C1420260656%2C1420260657%2C1420260658%2C1420260659%2C1420260660%2C1420260661%2C1420260662%2C1420260663%2C1420260664%2C1420260665%2C1420260666%2C1420260667%2C1420260668%2C1420260669%2C1420260670%2C1420260671%2C1420260672%2C1420260673%2C1420260674%2C1420260675%2C1420260676%2C1420260677%2C1420260678%2C1420260679%2C1420260680%2C1420260681%2C1420260682%2C1420260683%2C1420260684%2C1420260685%2C1420260686%2C1420260687%2C1420260688%2C1420260689%2C1420260690%2C1420260691%2C1420260692%2C1420260693%2C1420260694%2C1420260695%2C1420260696%2C1420260697%2C1420260698%2C1420260699%2C1420260700%2C1420260701%2C1420260702%2C1420260703%2C1420260704%2C1420260705%2C1420260706%2C1420260707%2C1420260708%2C1420260709%2C1420260710%2C1420260711%2C1420260712%2C1420260713%2C1420260714%2C1420260715%2C1420260716%2C1420260717%2C1420260718%2C1420260719%2C1420260720%2C1420260721%2C1420260722%2C1420260723%2C1420260724%2C1420260725%2C1420260726%2C1420260727%2C1420260728%2C1420260729%2C1420260730%2C1420260731%2C1420260732%2C1420260733%2C1420260734%2C1420260735%2C1420260736%2C1420260737%2C1420260738%2C1420260739%2C1420260740%2C1420260741%2C1420260742%2C1420260743%2C1420260744%2C1420260745%2C1420260746%2C1420260747%2C1420260748%2C1420260749%2C1420260750%2C1420260751%2C1420260752%2C1420260753%2C1420260754%2C1420260755%2C1420260756%2C1420260757%2C1420260758%2C1420260759%2C1420260760%2C1420260761%2C1420260762%2C1420260763%2C1420260764%2C1420260765%2C1420260766%2C1420260767%2C1420260768%2C1420260769%2C1420260770%2C1420260771%2C1420260772%2C1420260773%2C1420260774%2C1420260775%2C1420260776%2C1420260777%2C1420260778%2C1420260779%2C1420260780%2C1420260781%2C1420260782%2C1420260783%2C1420260784%2C1420260785%2C1420260786%2C1420260787%2C1420260788%2C1420260789%2C1420260790%2C1420260791%2C1420260792%2C1420260793%2C1420260794%2C1420260795%2C1420260796%2C1420260797%2C1420260798%2C1420260799%2C1420260800%2C1420260801%2C1420260802%2C1420260803%2C1420260804%2C1420260805%2C1420260806%2C1420260807%2C1420260808%2C1420260809%2C1420260810%2C1420260811%2C1420260812%2C1420260813%2C1420260814%2C1420260815%2C1420260816%2C1420260817%2C1420260818%2C1420260819%2C1420260820%2C1420260821%2C1420260822%2C1420260823%2C1420260824%2C1420260825%2C1420260826%2C1420260827%2C1420260828%2C1420260829%2C1420260830%2C1420260831%2C1420260832%2C1420260833%2C1420260834%2C1420260835%2C1420260836%2C1420260837%2C1420260838%2C1420260839%2C1420260840%2C1420260841%2C1420260842%2C1420260843%2C1420260844%2C1420260845%2C1420260846%2C1420260847%2C1420260848%2C1420260849%2C1420260850%2C1420260851%2C1420260852%2C1420260853%2C1420260854%2C1420260855%2C1420260856%2C1420260857%2C1420260858%2C1420260859%2C1420260860%2C1420260861%2C1420260862%2C1420260863%2C1420260864%2C1420260865%2C1420260866%2C1420260867%2C1420260868%2C1420260869%2C1420260870%2C1420260871%2C1420260872%2C1420260873%2C1420260874%2C1420260875%2C1420260876%2C1420260877%2C1420260878%2C1420260879%2C1420260880%2C1420260881%2C1420260882%2C1420260883%2C1420260884%2C1420260885%2C1420260886%2C1420260887%2C1420260888%2C1420260889%2C1420260890%2C1420260891%2C1420260892%2C1420260893%2C1420260894%2C1420260895%2C1420260896%2C1420260897%2C1420260898%2C1420260899%2C1420260900%2C1420260901%2C1420260902%2C1420260903%2C1420260904%2C1420260905%2C1420260906%2C1420260907%2C1420260908%2C1420260909%2C1420260910%2C1420260911%2C1420260912%2C1420260913%2C1420260914%2C1420260915%2C1420260916%2C1420260917%2C1420260918%2C1420260919%2C1420260920%2C1420260921%2C1420260922%2C1420260923%2C1420260924%2C1420260925%2C1420260926%2C1420260927%2C1420260928%2C1420260929%2C1420260930%2C1420260931%2C1420260932%2C1420260933%2C1420260934%2C1420260935%2C1420260936%2C1420260937%2C1420260938%2C1420260939%2C1420260940%2C1420260941%2C1420260942%2C1420260943%2C1420260944%2C1420260945%2C1420260946%2C1420260947%2C1420260948%2C1420260949%2C1420260950%2C1420260951%2C1420260952%2C1420260953%2C1420260954%2C1420260955%2C1420260956%2C1420260957%2C1420260958%2C1420260959%2C1420260960%2C1420260961%2C1420260962%2C1420260963%2C1420260964%2C1420260965%2C1420260966%2C1420260967%2C1420260968%2C1420260969%2C1420260970%2C1420260971%2C1420260972%2C1420260973%2C1420260974%2C1420260975%2C1420260976%2C1420260977%2C1420260978%2C1420260979%2C1420260980%2C1420260981%2C1420260982%2C1420260983%2C1420260984%2C1420260985%2C1420260986%2C1420260987%2C1420260988%2C1420260989%2C1420260990%2C1420260991%2C1420260992%2C1420260993%2C1420260994%2C1420260995%2C1420260996%2C1420260997%2C1420260998%2C1420260999%2C1420261000%2C1420261001%2C1420261002%2C1420261003%2C1420261004%2C1420261005%2C1420261006%2C1420261007%2C1420261008%2C1420261009%2C1420261010%2C1420261011%2C1420261012%2C1420261013%2C1420261014%2C1420261015%2C1420261016%2C1420261017%2C1420261018%2C1420261019%2C1420261020%2C1420261021%2C1420261022%2C1420261023%2C1420261024%2C1420261025%2C1420261026%2C1420261027%2C1420261028%2C1420261029%2C1420261030%2C1420261031%2C1420261032%2C1420261033%2C1420261034%2C1420261035%2C1420261036%2C1420261037%2C1420261038%2C1420261039%2C1420261040%2C1420261041%2C1420261042%2C1420261043%2C1420261044%2C1420261045%2C1420261046%2C1420261047%2C1420261048%2C1420261049%2C1420261050%2C1420261051%2C1420261052%2C1420261053%2C1420261054%2C1420261055%2C1420261056%2C1420261057%2C1420261058%2C1420261059%2C1420261060%2C1420261061%2C1420261062%2C1420261063%2C1420261064%2C1420261065%2C1420261066%2C1420261067%2C1420261068%2C1420261069%2C1420261070%2C1420261071%2C1420261072%2C1420261073%2C1420261074%2C1420261075%2C1420261076%2C1420261077%2C1420261078%2C1420261079%2C1420261080%2C1420261081%2C1420261082%2C1420261083%2C1420261084%2C1420261085%2C1420261086%2C1420261087%2C1420261088%2C1420261089%2C1420261090%2C1420261091%2C1420261092%2C1420261093%2C1420261094%2C1420261095%2C1420261096%2C1420261097%2C1420261098%2C1420261099%2C1420261100%2C1420261101%2C1420261102%2C1420261103%2C1420261104%2C1420261105%2C1420261106%2C1420261107%2C1420261108%2C1420261109%2C1420261110%2C1420261111%2C1420261112%2C1420261113%2C1420261114%2C1420261115%2C1420261116%2C1420261117%2C1420261118%2C1420261119%2C1420261120%2C1420261121%2C1420261122%2C1420261123%2C1420261124%2C1420261125%2C1420261126%2C1420261127%2C1420261128%2C1420261129%2C1420261130%2C1420261131%2C1420261132%2C1420261133%2C1420261134%2C1420261135%2C1420261136%2C1420261137%2C1420261138%2C1420261139%2C1420261140%2C1420261141%2C1420261142%2C1420261143%2C1420261144%2C1420261145%2C1420261146%2C1420261147%2C1420261148%2C1420261149%2C1420261150%2C1420261151%2C1420261152%2C1420261153%2C1420261154%2C1420261155%2C1420261156%2C1420261157%2C1420261158%2C1420261159%2C1420261160%2C1420261161%2C1420261162%2C1420261163%2C1420261164%2C1420261165%2C1420261166%2C1420261167%2C1420261168%2C1420261169%2C1420261170%2C1420261171%2C1420261172%2C1420261173%2C1420261174%2C1420261175%2C1420261176%2C1420261177%2C1420261178%2C1420261179%2C1420261180%2C1420261181%2C1420261182%2C1420261183%2C1420261184%2C1420261185%2C1420261186%2C1420261187%2C1420261188%2C1420261189%2C1420261190%2C1420261191%2C1420261192%2C1420261193%2C1420261194%2C1420261195%2C1420261196%2C1420261197%2C1420261198%2C1420261199%2C1420261200%2C1420261201%2C1420261202%2C1420261203%2C1420261204%2C1420261205%2C1420261206%2C1420261207%2C1420261208%2C1420261209%2C1420261210%2C1420261211%2C1420261212%2C1420261213%2C1420261214%2C1420261215%2C1420261216%2C1420261217%2C1420261218%2C1420261219%2C1420261220%2C1420261221%2C1420261222%2C1420261223%2C1420261224%2C1420261225%2C1420261226%2C1420261227%2C1420261228%2C1420261229%2C1420261230%2C1420261231%2C1420261232%2C1420261233%2C1420261234%2C1420261235%2C1420261236%2C1420261237%2C1420261238%2C1420261239%2C1420261240%2C1420261241%2C1420261242%2C1420261243%2C1420261244%2C1420261245%2C1420261246%2C1420261247%2C1420261248%2C1420261249%2C1420261250%2C1420261251%2C1420261252%2C1420261253%2C1420261254%2C1420261255%2C1420261256%2C1420261257%2C1420261258%2C1420261259%2C1420261260%2C1420261261%2C1420261262%2C1420261263%2C1420261264%2C1420261265%2C1420261266%2C1420261267%2C1420261268%2C1420261269%2C1420261270%2C1420261271%2C1420261272%2C1420261273%2C1420261274%2C1420261275%2C1420261276%2C1420261277%2C1420261278%2C1420261279%2C1420261280%2C1420261281%2C1420261282%2C1420261283%2C1420261284%2C1420261285%2C1420261286%2C1420261287%2C1420261288%2C1420261289%2C1420261290%2C1420261291%2C1420261292%2C1420261293%2C1420261294%2C1420261295%2C1420261296%2C1420261297%2C1420261298%2C1420261299%2C1420261300%2C1420261301%2C1420261302%2C1420261303%2C1420261304%2C1420261305%2C1420261306%2C1420261307%2C1420261308%2C1420261309%2C1420261310%2C1420261311%2C1420261312%2C1420261313%2C1420261314%2C1420261315%2C1420261316%2C1420261317%2C1420261318%2C1420261319%2C1420261320%2C1420261321%2C1420261322%2C1420261323%2C1420261324%2C1420261325%2C1420261326%2C1420261327%2C1420261328%2C1420261329%2C1420261330%2C1420261331%2C1420261332%2C1420261333%2C1420261334%2C1420261335%2C1420261336%2C1420261337%2C1420261338%2C1420261339%2C1420261340%2C1420261341%2C1420261342%2C1420261343%2C1420261344%2C1420261345%2C1420261346%2C1420261347%2C1420261348%2C1420261349%2C1420261350%2C1420261351%2C1420261352%2C1420261353%2C1420261354%2C1420261355%2C1420261356%2C1420261357%2C1420261358%2C1420261359%2C1420261360%2C1420261361%2C1420261362%2C1420261363%2C1420261364%2C1420261365%2C1420261366%2C1420261367%2C1420261368%2C1420261369%2C1420261370%2C1420261371%2C1420261372%2C1420261373%2C1420261374%2C1420261375%2C1420261376

bart1 commented 1 year ago

@sarahcd / @mcb77 do you know what the limit of the url length is then I can provide a proper warning before

bart1 commented 1 year ago

Some exploration shows the border seems to be 8202 characters being to long. However before that there is a regions from about 7800 to 8200 characters where an internal server error is produced that the header is too long:

HTTP Status 400 – Bad Requestbody {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}HTTP Status 400 – Bad RequestType Exception ReportMessage Request header is too largeDescription The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).Exceptionjava.lang.IllegalArgumentException: Request header is too large
    org.apache.coyote.http11.Http11InputBuffer.fill(Http11InputBuffer.java:785)
    org.apache.coyote.http11.Http11InputBuffer.parseHeader(Http11InputBuffer.java:868)
    org.apache.coyote.http11.Http11InputBuffer.parseHeaders(Http11InputBuffer.java:607)
    org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:525)
    org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
    org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:818)
    org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1626)
    org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    java.lang.Thread.run(Thread.java:748)
Note The full stack trace of the root cause is available in the server logs.Apache Tomcat/8.5.59