I am facing this issue while deploying my model. I can not rectify this issue pls help m
WMLClientError: Publishing model failed.
Reason: (400)
Reason: Bad Request
HTTP response headers: HTTPHeaderDict({'Date': 'Tue, 08 Nov 2022 13:04:55 GMT', 'Content-Type': 'application/json', 'Content-Length': '292', 'Connection': 'keep-alive', 'server-timing': 'intid;desc=6f623e2ef5e91f78, intid;desc=6f623e2ef5e91f78', 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains', 'CF-Cache-Status': 'DYNAMIC', 'Server': 'cloudflare', 'CF-RAY': '766e84679bdde7b3-DFW'})
HTTP response body: {
"trace": "90db2fd42086ff741443abb0c688d8ad",
"errors": [{
"code": "invalid_request_entity",
"message": "Invalid request entity: Unsupported software specification 'default_py3.7'.",
"more_info": "https://cloud.ibm.com/apidocs/machine-learning"
}],
"status_code": "400"
}
I am facing this issue while deploying my model. I can not rectify this issue pls help me
Related
I want to create a short dynamic link via the REST API. My goal is to create a short link with a custom URL suffix.
First, I created an auth token with the following command:
gcloud auth print-access-token
Then, I sent the request:
POST https://firebasedynamiclinks.googleapis.com/v1/managedShortLinks:create
Content-Type: application/json
Authorization: Bearer {{auth_token}}
{
"longDynamicLink": "https://example.com/l/?efr=0&ibi=abc&isi=def&apn=ghi&link=https%3A%2F%2Fexample.com%2Fl%2Fcustom-short-link",
"suffix": {
"customSuffix": "custom-suffix",
"option": "CUSTOM"
}
}
However, I'm getting this response:
HTTP/1.1 403 Forbidden
WWW-Authenticate: Bearer realm="https://accounts.google.com/", error="insufficient_scope", scope="https://www.googleapis.com/auth/firebase"
Vary: Origin, X-Origin, Referer
Content-Type: application/json; charset=UTF-8
Content-Encoding: gzip
Date: Wed, 12 Oct 2022 02:21:07 GMT
Server: ESF
Cache-Control: private
X-XSS-Protection: 0
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Connection: close
Transfer-Encoding: chunked
{
"error": {
"code": 403,
"message": "Request had insufficient authentication scopes.",
"status": "PERMISSION_DENIED",
"details": [
{
"#type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "ACCESS_TOKEN_SCOPE_INSUFFICIENT",
"domain": "googleapis.com",
"metadata": {
"method": "google.firebase.dynamiclinks.v1.DynamicLinksService.CreateManagedShortLink",
"service": "firebasedynamiclinks.googleapis.com"
}
}
]
}
}
I tried using my personal account and service account with the Firebase Dynamic Links Admin role. It is not working. Any ideas?
I'm working with CouchDB and am trying to search a db using _find. I am currently running into the following error:
error: 'illegal_docid',
reason: 'Only reserved document ids may start with underscore.',
scope: 'couch',
statusCode: 400,
request:
{ method: 'POST',
headers:
{ 'content-type': 'application/json',
accept: 'application/json',
Host: 'example.com',
Referer: 'https://example.com' },
uri: 'http://XXXXXX:XXXXXX#206.189.178.130:5984/gc_common/_find',
body: '{"selector":{"_id":"taglist"}}' },
headers:
{ date: 'Thu, 25 Jul 2019 22:04:09 GMT',
'content-type': 'application/json',
connection: 'close',
'cache-control': 'must-revalidate',
statusCode: 400,
uri: 'http://XXXXXX:XXXXXX#206.189.178.130:5984/gc_common/_find' },
errid: 'non_200',
description: 'couch returned 400' }
I'm working with CouchDB and am trying to search a db using _find. I am currently running into the following error:
error: 'bad_request',
reason: 'Referer header must match host.',
scope: 'couch',
statusCode: 400,
request:
{ method: 'POST',
headers:
{ 'content-type': 'application/json',
accept: 'application/json',
Host: 'https://example.com',
Referer: 'https://example.com' },
uri: 'http://XXXXXX:XXXXXX#206.189.178.130:5984/gc_common/_find',
body: '{"selector":{"_id":"taglist"}}' },
headers:
{ date: 'Wed, 24 Jul 2019 01:58:37 GMT',
'content-type': 'application/json',
connection: 'close',
'cache-control': 'must-revalidate',
statusCode: 400,
uri: 'http://XXXXXX:XXXXXX#206.189.178.130:5984/gc_common/_find' },
errid: 'non_200',
description: 'couch returned 400' }
I am a beginner on Firebase, I got a error when write command line "firebase serve".On the other hand, I can run "firebase deploy" command.Is this problem about OAuth 2.0 authentication ?
I am not developing ios, android app. I have been doing web site.
CLI Version: 3.18.4 , Platform: win32, Node Version: v8.11.1
[debug] [2018-05-04T04:00:08.420Z] ----------------------------------------------------------------------
[debug] [2018-05-04T04:00:08.423Z] Command: C:\Program Files\nodejs\node.exe C:\Users\ahmet\AppData\Roaming\npm\node_modules\firebase-tools\bin\firebase serve
[debug] [2018-05-04T04:00:08.423Z] CLI Version: 3.18.4
[debug] [2018-05-04T04:00:08.423Z] Platform: win32
[debug] [2018-05-04T04:00:08.423Z] Node Version: v8.11.1
[debug] [2018-05-04T04:00:08.423Z] Time: Fri May 04 2018 07:00:08 GMT+0300 (Turkey Standard Time)
[debug] [2018-05-04T04:00:08.423Z] ----------------------------------------------------------------------
[debug]
[debug] [2018-05-04T04:00:08.432Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[debug] [2018-05-04T04:00:08.432Z] > authorizing via signed-in user
[debug] [2018-05-04T04:00:08.434Z] > refreshing access token with scopes: ["email","https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","openid"]
[debug] [2018-05-04T04:00:08.434Z] >>> HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token
{ refresh_token: '1/p1W5jdYn4PPSS0uPOTQt4K7qd_uw138yP26juNljNdPQ',
client_id: '56358434335869-fgrhgmd47bqnekij5i8b5pd03ho849e6.apps.googleusercontent.com',
client_secret: 'j9idda34334fs',
grant_type: 'refresh_token',
scope: 'email https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/cloudplatformprojects.readonly https://www.googleapis.com/auth/firebase openid' }
Fri May 04 2018 07:00:08 GMT+0300 (Turkey Standard Time)
[debug] [2018-05-04T04:00:08.780Z] <<< HTTP RESPONSE 200
[debug] [2018-05-04T04:00:08.787Z] >>> HTTP REQUEST GET https://admin.firebase.com/v1/projects/database
Fri May 04 2018 07:00:08 GMT+0300 (Turkey Standard Time)
[debug] [2018-05-04T04:00:09.878Z] <<< HTTP RESPONSE 200
[debug] [2018-05-04T04:00:09.880Z] >>> HTTP REQUEST GET https://admin.firebase.com/v1/database/database/tokens
Fri May 04 2018 07:00:09 GMT+0300 (Turkey Standard Time)
[debug] [2018-05-04T04:00:10.761Z] <<< HTTP RESPONSE 200
[debug] [2018-05-04T04:00:10.764Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/database
Fri May 04 2018 07:00:10 GMT+0300 (Turkey Standard Time)
[debug] [2018-05-04T04:00:11.902Z] <<< HTTP RESPONSE 200
[info]
[info] === Serving from 'C:\Projects\projectname'...
[info]
[info] i functions: Preparing to emulate functions.
[debug] [2018-05-04T04:00:13.307Z] Fetching environment
[debug] [2018-05-04T04:00:13.309Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/330783331994:getServerAppConfig
Fri May 04 2018 07:00:13 GMT+0300 (Turkey Standard Time)
[debug] [2018-05-04T04:00:13.309Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/330783331994/clients/_:getWebAppConfig
Fri May 04 2018 07:00:13 GMT+0300 (Turkey Standard Time)
[debug] [2018-05-04T04:00:14.091Z] <<< HTTP RESPONSE 200
[debug] [2018-05-04T04:00:14.093Z] Starting #google-cloud/functions-emulator
[debug] [2018-05-04T04:00:14.363Z] <<< HTTP RESPONSE 500
[debug] [2018-05-04T04:00:14.363Z] <<< HTTP RESPONSE BODY
[error]
[error] Error: HTTP Error: 500, Internal error encountered.
[debug] [2018-05-04T04:00:14.636Z] Error Context: {
"body": {
"error": {
"code": 500,
"message": "Internal error encountered.",
"status": "INTERNAL"
}
},
"response": {
"statusCode": 500,
"body": {
"error": {
"code": 500,
"message": "Internal error encountered.",
"status": "INTERNAL"
}
},
"headers": {
"vary": "X-Origin, Referer, Origin,Accept-Encoding",
"content-type": "application/json; charset=UTF-8",
"date": "Fri, 04 May 2018 04:00:14 GMT",
"server": "ESF",
"cache-control": "private",
"x-xss-protection": "1; mode=block",
"x-frame-options": "SAMEORIGIN",
"x-content-type-options": "nosniff",
"alt-svc": "hq=\":443\"; ma=2592000; quic=51303433; quic=51303432; quic=51303431; quic=51303339; quic=51303335,quic=\":443\"; ma=2592000; v=\"43,42,41,39,35\"",
"accept-ranges": "none",
"connection": "close"
},
"request": {
"uri": {
"protocol": "https:",
"slashes": true,
"auth": null,
"host": "mobilesdk-pa.googleapis.com",
"port": 443,
"hostname": "mobilesdk-pa.googleapis.com",
"hash": null,
"search": null,
"query": null,
"pathname": "/v1/projects/330783331994/clients/_:getWebAppConfig",
"path": "/v1/projects/330783331994/clients/_:getWebAppConfig",
"href": "https://mobilesdk-pa.googleapis.com/v1/projects/330783331994/clients/_:getWebAppConfig"
},
"method": "GET"
}
}
}
I am trying to deploy my site to firebase which I have done before but now it is saying "Error: An unknown error occurred. Please contact support." The contents of the firebase-debug.log file follows:
[debug] ----------------------------------------------------------------------
[debug] Command: /usr/bin/nodejs /usr/bin/firebase deploy
[debug] Platform: linux
[debug] Node Version: v4.3.0
[debug] Time: Mon Feb 22 2016 13:58:38 GMT-0700 (MST)
[debug] ----------------------------------------------------------------------
[debug]
[debug] >>> HTTP REQUEST GET https://admin.firebase.com/firebase/joshweaverspark/token?token=XXX
[error]
[error] Error: An unknown error occurred. Please contact support.
[debug] Error Context: {
"requestOptions": {
"method": "GET",
"json": true,
"url": "https://admin.firebase.com/firebase/joshweaverspark/token?token=-KA3RgJFHuDHz6BHvFQF%7C3b00cd5fc3e1c76f43a26385a3f680c0"
},
"body": {
"error": {
"code": "UNKNOWN_ERROR",
"message": "An unknown error occurred. Please contact support."
}
},
"response": {
"statusCode": 500,
"body": {
"error": {
"code": "UNKNOWN_ERROR",
"message": "An unknown error occurred. Please contact support."
}
},
"headers": {
"server": "nginx",
"date": "Mon, 22 Feb 2016 20:58:54 GMT",
"content-type": "application/json; charset=utf-8",
"content-length": "97",
"connection": "close",
"access-control-allow-origin": "*",
"access-control-allow-methods": "GET, PUT, POST, DELETE, OPTIONS",
"x-content-type-options": "nosniff"
},
"request": {
"uri": {
"protocol": "https:",
"slashes": true,
"auth": null,
"host": "admin.firebase.com",
"port": 443,
"hostname": "admin.firebase.com",
"hash": null,
"search": "?token=-KA3RgJFHuDHz6BHvFQF%7C3b00cd5fc3e1c76f43a26385a3f680c0",
"query": "token=-KA3RgJFHuDHz6BHvFQF%7C3b00cd5fc3e1c76f43a26385a3f680c0",
"pathname": "/firebase/joshweaverspark/token",
"path": "/firebase/joshweaverspark/token?token=-KA3RgJFHuDHz6BHvFQF%7C3b00cd5fc3e1c76f43a26385a3f680c0",
"href": "https://admin.firebase.com/firebase/joshweaverspark/token?token=-KA3RgJFHuDHz6BHvFQF%7C3b00cd5fc3e1c76f43a26385a3f680c0"
},
"method": "GET",
"headers": {
"accept": "application/json"
}
}
}
}
After updating Node.js, i was able to deploy the project.
You can try the same by updating Node.js:
sudo npm install npm#latest -g
In my case upgrading node and npm wasn't enough, but upgrading firebase-tools, fixed the problem
npm install -g firebase-tools