DTS, ODTC are not allowed for Package and "code": 404, "message": "Not Found. Could not get object", "status": "GET_OBJECT" } - firebase

When I was debugging this error messaging coming on my console. Network is connected, Location is enabled. Why is that? Is that issue on Firebase Storage?
D/libGLESv2(11719): STS_GLApi : DTS, ODTC are not allowed for Package : com.demo.dev
W/zygote64(11719): Skipping duplicate class check due to unrecognized classloader
I/DynamiteModule(11719): Considering local module com.google.android.gms.flags:3 and remote module com.google.android.gms.flags:3
I/DynamiteModule(11719): Selected local version of com.google.android.gms.flags
W/DynamiteModule(11719): Local module descriptor class for providerinstaller not found.
D/ConnectivityManager(11719): requestNetwork; CallingUid : 10868, CallingPid : 11719
I/DynamiteModule(11719): Considering local module providerinstaller:0 and remote module providerinstaller:0
W/ProviderInstaller(11719): Failed to load providerinstaller module: No acceptable module found. Local version is 0 and remote version is 0.
I/zygote64(11719): find the special shared library, skip check
I/zygote64(11719): find the special shared library, skip check
I/zygote64(11719): Failed to open app image /data/app/com.google.android.gms-hB2cPXA9qy2DYi6Ad6koKA==/oat/arm64/base.art Failed to open '/data/app/com.google.android.gms-hB2cPXA9qy2DYi6Ad6koKA==/oat/arm64/base.art'
W/BiChannelGoogleApi(11719): [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzak#d4dec1
V/NativeCrypto(11719): Registering com/google/android/gms/org/conscrypt/NativeCrypto's 286 native methods...
D/NetworkSecurityConfig(11719): No Network Security Config specified, using platform default
I/ProviderInstaller(11719): Installed default security provider GmsCore_OpenSSL
D/ConnectivityManager(11719): requestNetwork; CallingUid : 10868, CallingPid : 11719
W/BiChannelGoogleApi(11719): [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzak#d4dec1
D/FirebaseAuth(11719): Notifying id token listeners about user ( 9zD91GkB5aX8jd4m428nVwOg8yB3 ).
W/Firestore(11719): (21.3.0) [FirestoreCallCredentials]: Failed to get token: com.google.firebase.firestore.FirebaseFirestoreException: getToken aborted due to token change.
I/zygote64(11719): Do full code cache collection, code=120KB, data=84KB
I/zygote64(11719): After code cache collection, code=107KB, data=62KB
I/zygote64(11719): Do partial code cache collection, code=124KB, data=73KB
I/zygote64(11719): After code cache collection, code=124KB, data=73KB
I/zygote64(11719): Increasing code cache capacity to 512KB
D/ViewRootImpl#24391fb[MainActivity](11719): Relayout returned: old=[0,0][1080,1920] new=[0,0][1080,1920] result=0x1 surface={valid=true 495703769088} changed=false
I/System.out(11719): (HTTPLog)-Static: isSBSettingEnabled false
I/System.out(11719): (HTTPLog)-Static: isSBSettingEnabled false
E/StorageException(11719): StorageException has occurred.
E/StorageException(11719): Object does not exist at location.
E/StorageException(11719): Code: -13010 HttpResult: 404
E/StorageException(11719): { "error": { "code": 404, "message": "Not Found. Could not get object", "status": "GET_OBJECT" }}
E/StorageException(11719): java.io.IOException: { "error": { "code": 404, "message": "Not Found. Could not get object", "status": "GET_OBJECT" }}
E/StorageException(11719): at com.google.firebase.storage.network.NetworkRequest.parseResponse(com.google.firebase:firebase-storage##17.0.0:455)
E/StorageException(11719): at com.google.firebase.storage.network.NetworkRequest.parseErrorResponse(com.google.firebase:firebase-storage##17.0.0:435)
E/StorageException(11719): at com.google.firebase.storage.network.NetworkRequest.processResponseStream(com.google.firebase:firebase-storage##17.0.0:426)
E/StorageException(11719): at com.google.firebase.storage.network.NetworkRequest.performRequest(com.google.firebase:firebase-storage##17.0.0:280)
E/StorageException(11719): at com.google.firebase.storage.network.NetworkRequest.performRequest(com.google.firebase:firebase-storage##17.0.0:294)
E/StorageException(11719): at com.google.firebase.storage.internal.ExponentialBackoffSender.sendWithExponentialBackoff(com.google.firebase:firebase-storage##17.0.0:70)
E/StorageException(11719): at com.google.firebase.storage.internal.ExponentialBackoffSender.sendWithExponentialBackoff(com.google.firebase:firebase-storage##17.0.0:62)
E/StorageException(11719): at com.google.firebase.storage.GetDownloadUrlTask.run(com.google.firebase:firebase-storage##17.0.0:74)
E/StorageException(11719): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
E/StorageException(11719): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
E/StorageException(11719): at java.lang.Thread.run(Thread.java:764)

The object you are trying to read from Firebase Storage Bucket does not exist at the path/location. Hence the error
Object does not exist at location.
Also The HTTP Error Code 404.
So you can check the path in your code and check the object in firebase storage console ( refresh page every time you perform a upload or delete operation)

I had the same issue, and I was checking the documentation and my problem was the MinSDK Version:
I go to android/app/build.gradle and there I change the minSdkVersion: 16 to minSdkVersion: 21, because firebase need that at least MinSDK Version 19.

Related

Failed when trying out in publisher portal

Environment details:
wso2am-4.0.0
new keystore with self-signed certificate "my.domain.somewhere.com"
I follow this doc to create newstore.
When test from tryout page in publisher portal , fails response:
{
"code": "900901",
"message": "Invalid Credentials",
"description": "Invalid Credentials. Make sure you have provided the correct security credentials"
}
in devportal , tryout is ok.
the error in console :
TID: [-1] [] [2022-03-16 15:30:11,365] WARN {org.apache.synapse.transport.passthru.SourceHandler} - I/O error: Received fatal alert: certificate_unknown
TID: [-1] [] [2022-03-16 15:31:03,204] WARN {org.apache.synapse.transport.passthru.SourceHandler} - I/O error: Received fatal alert: certificate_unknown
TID: [-1234] [] [2022-03-16 15:31:03,333] ERROR {org.wso2.carbon.apimgt.gateway.handlers.security.authenticator.InternalAPIKeyAuthenticator} - Invalid Internal Key. Signature verification failed.
TID: [-1234] [] [2022-03-16 15:31:03,333] WARN {org.wso2.carbon.apimgt.gateway.handlers.security.APIAuthenticationHandler} - API authentication failure due to Invalid Credentials
For the Publisher tryout key validation, WSO2 uses the gateway_certificate_alias in the client-truststore. So you need to update that also with the public key of your new cert.

Artifactory doesn't work after restoring nuget packages

When a team member restores nuget packages using donet, artifactory enters a loop with the errors below until the memory overflows.
The problem only happens when he adds in his Nuget.Config the tag protocolVersion="3"
<add key="Company" value="https://repo.company.com/artifactory/api/nuget/v3/rdi-nuget-virtual" protocolVersion="3" />
In the tests we noticed that the use of the protocolversion=3 tag causes this.
This tag is necessary because the download of the file is much faster
Anyone have an idea what it could be?
Could you help me please?
logs below
Version jfrog: 7.29.8 rev 72908900
2022-01-11T14:00:57.263Z [jfrt ] [WARN ] [6cdecc92eaf486c7] [.r.ArtifactoryResponseBase:136] [ttp-nio-8081-exec-43] - Sending HTTP error code 403: Download request for repo:path 'nuget-remote-cache:.nuGetV3/feed.json' is forbidden for user: 'lcunha'.
2022-01-11T14:00:57.264Z [jfrt ] [ERROR] [6cdecc92eaf486c7] [etV3VirtualAndRemoteCommon:274] [ttp-nio-8081-exec-43] - Failed to download resource in repo: nuget-remote, at url: https://api.nuget.org/v3/index.json. HTTP STATUS CODE: 403
2022-01-11T14:00:57.264Z [jfrt ] [ERROR] [6cdecc92eaf486c7] [etV3VirtualAndRemoteCommon:133] [ttp-nio-8081-exec-43] - Failed to convert artifactory url (https://repostaging.companysoftware.com:443/artifactory/api/nuget/v3/company-nuget-virtual/registration-semver2) to original remote url for repo: nuget-remote, package: xunit.core
java.lang.NullPointerException: null
at java.base/java.util.Objects.requireNonNull(Objects.java:221)
2022-01-11T14:01:56.786Z [jfrou] [ERROR] [2016c910242342cc] [external_topology.go:82 ] [main ] - Failed fetching external topology from Access: Get "http://localhost:8040/access/api/v1/topology": net/http: request canceled (Client.Timeout exceeded while awaiting headers)
2022-01-11T14:02:04.871Z [jfrou] [WARN ] [7f3fb3a30ade9665] [local_topology.go:268 ] [main ] - Readiness test failed with the following error: "required node services are missing or unhealthy"
2022-01-11T14:02:09.877Z [jfrou] [ERROR] [7f3fb3a30ade9665] [local_topology.go:128 ] [main ] - periodic send heartbeat failed for 4 consecutive times. Last error: failed sending heartbeat information to Access: failed closing Access grpc client: closing heartbeat client and waiting for response timed-out
java.lang.OutOfMemoryError: Java heap space
-XX:OnOutOfMemoryError="kill -9 %p"
Executing /bin/sh -c "kill -9 3974"...
2022-01-11T14:02:11.185Z [jfrou] [WARN ] [5a89519a8048b91d] [local_topology.go:268 ] [main ] - Readiness test failed with the following error: "required node services are missing or unhealthy"
2022-01-11T14:02:11.196Z [jfrou] [ERROR] [79bb63bc55c1ed15] [external_topology.go:82 ] [main ] - Failed fetching external topology from Access: Get "http://localhost:8040/access/api/v1/topology": read tcp 127.0.0.1:55970-127.0.0.1:8040: read: connection reset by peer
2022/01/11 14:02:11 httputil: ReverseProxy read error during body copy: read tcp 127.0.0.1:56788->127.0.0.1:8045: read: connection reset by peer
2022/01/11 14:02:11 httputil: ReverseProxy read error during body copy: read tcp 127.0.0.1:56788->127.0.0.1:8045: read: connection reset by peer
2022/01/11 14:02:11 httputil: ReverseProxy read error during body copy: read tcp 127.0.0.1:56788->127.0.0.1:8045: read: connection reset by peer
2022-01-11T14:02:11.208Z 35[jfob ] [WARN ] [1ed879c85a5af005] [access_join.go:70 ] [main ] - Refreshing platform config change events gRPC stream - target server is unavailable - if issue persists check communication with access [access_client]
/opt/jfrog/artifactory/app/bin/artifactory.sh: line 359: 3974 Killed $TOMCAT_HOME/bin/catalina.sh run
Can you share your setup?
-The application server is the CentOS Linux release 7.9.2009 (Core)
-MySQL as backend Database
-Also, we are using the Apache as reverse proxy to apply the SSL certificate.
How are you running Artifactory?
-The Artifactory is container based: releases-docker.jfrog.io/jfrog/artifactory-pro:7.29.8
How much resources to you give it? Memory and CPU
The server has allocated:
2 vCPU
16 GB RAM
SSD
What are the java memory settings? Mostly interested in heap settings (Xms and Xmx)?
We are using the standard configuration. No changes were made in the Xms and Xms parameters.
As you are using Artifactory v7.x? You may refer to our System Requirements wiki page for the recommended hardware based on your environment.
Also, from on the error message shared, it looks like the user does not have proper permissions hence we see 403 errors. Please do validate and assign the required permissions to the user and let us know the results.
Sending HTTP error code 403:
Download request for repo:
path 'nuget-remote-cache:.nuGetV3/feed.json' is forbidden for user: 'lcunha'.

Meteor Google OAuth Error: "Failed to complete OAuth handshake with Google" Error 401 Unauthorized

I've been trying to set up Google OAuth Login on my Meteor Web App and I've been getting this error every time I try to log in. I've verified the domain on the search console and added the correct redirect URI's and Javascript origins. The Google login works up until this point. Sorry if I haven't given enough information but is there any other reason that could be causing this error?
Btw I also tried to set the ROOT_URL like this: ROOT_URL="https://domainnamehere.com" meteor deploy when I deploy to galaxy hosting but when I try typing Meteor.absoluteUrl in the browser console, I get this error:
"Must pass options.rootUrl or set ROOT_URL in the server environment...
This is the main error that I've been getting though:
2021-10-04 18:05:17-04:00{"line":"405","file":"oauth_server.js","message":"Error in OAuth Server: Failed to complete OAuth handshake with Google. failed [401] { \"error\": \"invalid_client\", \"error_description\": \"Unauthorized\" }","time":{"$date":1633385117461},"level":"warn"}8136p
2021-10-04 18:05:17-04:00Exception while invoking method 'login' Error: Failed to complete OAuth handshake with Google. failed [401] { "error": "invalid_client", "error_description": "Unauthorized" }8136p
2021-10-04 18:05:17-04:00 at getTokens (packages/google-oauth/google_server.js:105:7)8136p
2021-10-04 18:05:17-04:00 at Object.getServiceData [as handleOauthRequest] (packages/google-oauth/google_server.js:80:58)8136p
2021-10-04 18:05:17-04:00 at OAuth._requestHandlers.<computed> (packages/oauth2/oauth2_server.js:10:33)8136p
2021-10-04 18:05:17-04:00 at middleware (packages/oauth/oauth_server.js:170:5)8136p
2021-10-04 18:05:17-04:00 at /app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:408136p
2021-10-04 18:05:24-04:00{"line":"405","file":"oauth_server.js","message":"Error in OAuth Server: Failed to complete OAuth handshake with Google. failed [401] { \"error\": \"invalid_client\", \"error_description\": \"Unauthorized\" }","time":{"$date":1633385124123},"level":"warn"}8136p
2021-10-04 18:05:24-04:00Exception while invoking method 'login' Error: Failed to complete OAuth handshake with Google. failed [401] { "error": "invalid_client", "error_description": "Unauthorized" }

SSL error when creating vue.js app using api platform client generator

I tried to create client app of my API created using API Platform. I follow this guide https://api-platform.com/docs/client-generator/vuejs/.
I use Laravel Homestead for the VM when developing it.
I've added myapp .crt file to Keychan Access.
Problem was, when I try to execute
generate-api-platform-client --generator vue https://myapp-api.local/api src/
It return error message like this:
{
api: Api { entrypoint: 'https://myapp-api.local/api', resources: [] },
error: FetchError: request to https://myapp-api.local/api failed, reason: unable to verify the first certificate
at ClientRequest.<anonymous> (/Users/permana.jayanta/.config/yarn/global/node_modules/node-fetch/index.js:133:11)
at ClientRequest.emit (events.js:209:13)
at TLSSocket.socketErrorListener (_http_client.js:406:9)
at TLSSocket.emit (events.js:209:13)
at emitErrorNT (internal/streams/destroy.js:91:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
name: 'FetchError',
message: 'request to https://myapp-api.local/api failed, reason: unable to verify the first certificate',
type: 'system',
errno: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE',
code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE'
},
response: undefined,
status: undefined
}
I'm thinking this is related with SSL certificate. That node doesn't recognise the certificate. How to make node.js recognise the custom SSL certificate generated by Homestead?
it failed to verify https signature.
To disable it, type in shell
export NODE_TLS_REJECT_UNAUTHORIZED=0

how to fix failed "emigration from artifactory to access"?

upgrading artifactory from 5.5.2 to 5.6.0 fails during "emigration from artifactory to access" with:
2017-11-17 11:27:38,614 [art-init] [INFO ] (o.a.s.a.e.AccessSecurityEmigratorImpl:42) - Starting emigration from artifactory to access
2017-11-17 11:27:39,485 [art-init] [ERROR] (o.a.c.ConvertersManagerImpl:216) - Conversion failed. You should analyze the error and retry launching Artifactory. Error is: HTTP response
status 403:{
"errors" : [ {
"code" : "FORBIDDEN",
"message" : "Logged in 'jfac#01btna61r80s0n0y2ydfda1tyy/users/admin' is not an admin."
} ]
}
After restart, all user permissions and especially admin privileges are gone.
How do I restore previous user permissions or downgrade to previous version?
Worked around it by re-installing the previous version 5.5.2 and restoring all data and settings from backup.
see also:
https://www.jfrog.com/jira/browse/RTFACT-15289

Resources