php - Encountered a runtime exception when running code -
i trying interact web app azure api. got php exception error. can tell me it?
runtimeexception: provided config value '[http | https]' not belong valid values subset:
this code (account key has been deleted):
$conn_string="defaultendpointsprotocol=[http | https];accountname=storage;accountkey=..."; $blobrestproxy = servicesbuilder::getinstance()->createblobservice($conn_string);
your storage connection string indeed invalid.
the value [http | https] placeholder copied somewhere, denotes have pick http or https configure whether want connect storage data on regular or secure http.
simply try:
defaultendpointsprotocol=https;accountkey=... etc and btw, you're exposing account key public!
Comments
Post a Comment