Receiving 404 error for "Goodmayes, Barley Lane / Goodmayes Stn", Barley Lane / Goodmayes Stn/to/Tower Hamlets [Stepney], Roka, Canary Wharf, Barley Lane / Goodmayes Stn/to/Canary Wharf, Canary Wharf Rail Station, Barley Lane / Goodmayes Stn/to/Tower Hamlets [Stepney], Canteen, Canary Wharf

Sent a GET request with the URLs above, and received a 404 error.

The code should be returning a 200/300 status code as the location names are being used directly from the array.

It seems to be a problem with the “Goodmayes, Barley Lane / Goodmayes Stn” location

# test to see if we get a 200/300 (multiple choices) response when entering correct input values
    i = random.randint(0,len(FromArray))
    j = random.randint(0,len(ToArray))
    # randomly pick a value from the array, array contents depends on what you pass into the cmd line
    FromInput = FromArray[i]
    ToInput = ToArray[j]
    generateURL(FromInput, ToInput)
fromResponse = responseJson["fromLocationDisambiguation"]["disambiguationOptions"][i]["place"]["commonName"]
        ToResponse = responseJson["toLocationDisambiguation"]["disambiguationOptions"][i]["place"]["commonName"]

@Ari You need to encode the “/” as %2F when using it in within an URL parameter