Readthedocs.org: Environmental Variable character limit is 256

Created on 11 Feb 2019  路  17Comments  路  Source: readthedocs/readthedocs.org

Hello all,

I use a private PyPi hosting service (Azure Artifacts) which generates very long URLs to connect with.

Right now when I go to set an environmental variable through the readthedocs.com UI, I cannot enter the number of characters I need.

The limit appears to be 256. My URL is almost 1000 characters.

This is currently blocking my company's ability to generate documentation, as we need this link available to pip in order to install all of our library's dependencies.

Accepted Improvement

Most helpful comment

Saw the new change log. Just wanted to confirm this fixed my issue and now my docs are building. Thanks so much!

All 17 comments

Now that's a URL!

We're not familiar with Azure Artifacts, and so don't directly support it yet. I don't think there is any strong reason to keep our env vars limited to 256 characters however. Is it possible to provide a (scrubbed!) URL for an example? I guess I'm mostly curious if these URLs are always going to be <1000 chars, or if there is a better value we can use here. Scanning docs very quickly, I'm not seeing a good example.

Hey! Just checking back to see what the timetable for something like this usually is.

Not trying to add pressure, just want to be able to plan ahead. Thanks so much for looking into it!

@agjohnson which would be the max length here?

@stsewd Can we convert it to TextField?

I have no opinion on field length. Feel free to refer to other examples of CI services, or Heroku, and support for URLs from Azure Artifacts.

@agjohnson
Heroku: Config var data (the combination of all keys and values) cannot exceed 32kb for each app.
ref: https://devcenter.heroku.com/articles/config-vars#config-var-policies

Azure: Request URL size: The maximum size for a request URL is 2,048 chars.
ref: https://docs.microsoft.com/en-us/azure/azure-subscription-service-limits#application-gateway-limits

Hello -- just wanted to check back since I am still unable to build our docks. Thanks again to you all for looking into this.

My own two cents: for my particular use case 2048 is more than long enough since I am concerned with Azure Artifact URL's

I'd say it depends on what kind of data users want to put as an env variable, it could be a path file, a URL, private keys, etc. For the first two cases we are safe with 2048.

@stsewd should I open a PR for this with 2048 max_length?

Just checking back in. This is still blocking using RTD for our documentation.

Would it be possible to update to 2048, then leave this ticket open for any further discussion the devs would like to have long-term?

2048 seems fine

Awesome! Thank you! What is your release schedule for the website? I just tried to set an environmental variable and got the same result.

@bpeake-illuscio The PR hasn't been deployed yet. it will be Deployed soon. Thanks!

Yep, you can watch our changelog to see when it's released: https://docs.readthedocs.io/en/latest/changelog.html

Saw the new change log. Just wanted to confirm this fixed my issue and now my docs are building. Thanks so much!

Was this page helpful?
0 / 5 - 0 ratings