SoundCloud API return error 403 - Forbidden for all request from my VPS - soundcloud

I have a simple request to SoundCloud API which I get the correct response in my local. But when I put it into my VPS, the API returned error 403 - Forbidden. I have been looking around and found no document or proper explanation for this. This happening for all requests to SoundCloud API from my VPS (not 50% like the other post that I found here) .
$ curl https://api.soundcloud.com/tracks/197355235\?client_id\=978b6cc3cb0ba473f75da8bf6d3d0990
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>403 - Forbidden</title>
</head>
<body>
<h1>403 - Forbidden</h1>
</body>
</html>

Same for me.
Seems to be a blacklist but SoundCloud do not respond when you try to contact them...
If your host is OVH, read this :
Soundcloud 403 error for a range of IPs

Related

<title>Error 403 No valid crumb was included in the request</title> getting same in Eclipse using restassured

I am getting this error while calling a rest api which is working from postman
IDE : Eclipse and using rest assured
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 403 No valid crumb was included in the request</title>
</head>
<body><h2>HTTP ERROR 403</h2>
<p>Problem accessing /serviceurl.postregisterurl. Reason:
<pre> No valid crumb was included in the request</pre></p><hr>Powered by Jetty:// 9.4.z-SNAPSHOT<hr/>
</body>
</html>

Apache Atlas Rest Api

Im trying to read an Atlas entitiy via rest api, i tried this command :
curl -v -i -s -X GET user:pwd#something.confidential.here:21000/v1/entities/branch_intersect
Although i can see the table in Apache UI but it says not found :
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Error 404 Not Found</title>
</head>
<body><h2>HTTP ERROR 404</h2>
<p>Problem accessing /v1/entities/branch_intersect. Reason:
<pre> Not Found</pre></p><hr><i><small>Powered by Jetty://</small></i><hr/>
</body>
</html>
Im using Atlas v 0.7 and following this doc
The rest url should be like this :
curl -v -i -s -X GET user:pwd#something.confidential.here:21000/api/atlas/
Reference here

Azure RestAPI call to disable backup schedule in Recovery Services Vault

I'm using this URL to try to disable a scheduled backup job in Azure Recovery Services Vault :
https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/DisableBackup?api-version=2016-06-01
Unfortunately, I get an error message like this :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<title>404 - File or directory not found.</title>
What syntax I need to use to disable my job ?
In Azure portal, we could disable backup schedule by clicking Stop backup menu item.
After capture the traffic by IE development tool(opened by pressing F12), I found the request message should be following format.
Request URL:
POST https://main.recoveryservices.ext.azure.com/api//Subscriptions/{subscription-id}/resourceGroups/{resource-group}/providers/Microsoft.RecoveryServices/vaults/{recovery-services-vault-name}/backupFabrics/Azure/protectionContainers/IaasVMContainer;{containerName};{resource-group};{protected-item-name}/protectedItems/VM;{containerName};{resource-group};{protected-item-name}/DisableBackup
Request body:
{"virtualMachineId":"/subscriptions/{subscription-id}/resourceGroups/{resource-group}/providers/Microsoft.Compute/virtualMachines/{VM-name}"}
I suggest you capture the traffic by yourself and use the request message as REST request.

Strange issue with Git fetching

Currently, I was facing problem on Git(bitbucket repo) Fetching while trying to pull the git changes. I was really unfamiliar with the problem happening like this. Please help me. I am sharing the error log of the problem. So, please provide me right direction of solution.
Message : invalid advertisement of <!DOCTYPE html>
Exception Stacktrace:
org.eclipse.core.runtime.CoreException: invalid advertisement of <!DOCTYPE html>
at org.eclipse.egit.ui.internal.fetch.FetchOperationUI.execute(FetchOperationUI.java:102)
at org.eclipse.egit.ui.internal.fetch.FetchOperationUI$1.run(FetchOperationUI.java:117)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Caused by: org.eclipse.jgit.api.errors.TransportException: invalid advertisement of <!DOCTYPE html>
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:137)
at org.eclipse.egit.core.op.FetchOperation.run(FetchOperation.java:127)
at org.eclipse.egit.ui.internal.fetch.FetchOperationUI.execute(FetchOperationUI.java:99)
... 2 more
Caused by: org.eclipse.jgit.errors.PackProtocolException: invalid advertisement of <!DOCTYPE html>
at org.eclipse.jgit.transport.TransportHttp$HttpObjectDB.invalidAdvertisement(TransportHttp.java:714)
at org.eclipse.jgit.transport.TransportHttp$HttpObjectDB.readAdvertisedImpl(TransportHttp.java:680)
at org.eclipse.jgit.transport.TransportHttp.newDumbConnection(TransportHttp.java:339)
at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:319)
at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136)
at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)
at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1105)
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:128)
... 4 more
I had also a similar problem. In my case the Git server had the following response:
invalid advertisement of <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
As alredy suggested, i entered the Git repository URL into the browser, and the response was:
The password to the repository is expired.
After setting a new password, the problem was solved.

Redmine rest api returns html document

I try connect pycharm/small python projects to my redmine server, but rest api return this:
Error fetching issues for: /projects//issues.xml?key=(my secret key)&fields%5B%5D=status_id&operators%5Bstatus_id%5D=o&values%5Bstatus_id%5D%5B%5D=1&per_page=10, HTTP status code: 200
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<meta http-equiv='content-type' content='text/html; charset=UTF-8'>
<meta name="VERSION" content="">
<meta name="DATA" content="fwdnode7-bl.web-hosting.com (my redmine server)">
<link href=" " rel="shortcut icon" type="image/x-icon">
<title></title>
</head>
<frameset rows='100%, *' frameborder=no framespacing=0 border=0>
<frame src="http://(my redmine server)" name=mainwindow frameborder=no framespacing=0 marginheight=0 marginwidth=0></frame>
</frameset>
<noframes><h2>Your browser does not support frames. We recommend upgrading your browser.</h2><br><br>
<center>Click <a href="http://(my redmine server)" >here</a> to enter the site.</center>
</noframes>
</html>
Information about environment:
Redmine version 2.5.1.stable.13174
Ruby version 2.0.0-p481 (2014-05-08) [x86_64-linux]
Rails version 3.2.18
Environment production
Database adapter Mysql2
REST API and JSON are enabled in redmine's setting
How can I resolve this issue?