mirror of
				https://github.com/karl0ss/homepage.git
				synced 2025-11-04 08:20:58 +00:00 
			
		
		
		
	Merge pull request #1513 from davidosomething/fix-error-url
error hostname:port/path was missing colon
This commit is contained in:
		
						commit
						328875d0f5
					
				@ -81,7 +81,7 @@ export async function httpProxy(url, params = {}) {
 | 
				
			|||||||
    return [status, contentType, data, responseHeaders];
 | 
					    return [status, contentType, data, responseHeaders];
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  catch (err) {
 | 
					  catch (err) {
 | 
				
			||||||
    logger.error("Error calling %s//%s%s%s...", constructedUrl.protocol, constructedUrl.hostname, constructedUrl.port, constructedUrl.pathname);
 | 
					    logger.error("Error calling %s//%s:%s%s...", constructedUrl.protocol, constructedUrl.hostname, constructedUrl.port, constructedUrl.pathname);
 | 
				
			||||||
    logger.error(err);
 | 
					    logger.error(err);
 | 
				
			||||||
    return [500, "application/json", { error: {message: err?.message ?? "Unknown error", url, rawError: err} }, null];
 | 
					    return [500, "application/json", { error: {message: err?.message ?? "Unknown error", url, rawError: err} }, null];
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user