Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase Dynamic link internal error when creating using curl

i am trying to create firebase dynamic link using curl:

curl -d '{
        "dynamicLinkInfo": {
            "domainUriPrefix": "https://someweb.page.link",
            "link": "https://www.someWeb.net/shops?referral_id=someReferralId",
            "androidInfo": {
                "androidPackageName": "some package name"
            },
            "iosInfo": {
                "iosBundleId": "some bundle",
                "iosAppStoreId": "11111111"
            },
            "navigationInfo": {
                "enableForcedRedirect": true
            }
        }
    }' -H "Content-Type: application/json" -X POST "https://firebasedynamiclinks.googleapis.com/v1/shortLinks?key=MyFBWebKey"

and for some reason, I'm getting the following response with isn't very explanatory...

{ "error": { "code": 500, "message": "Internal error encountered.", "status": "INTERNAL" } }

I've tried to delete all the iosInfo, navigationInfo, androidInfo... and the problem persists. any help would be appreciated.

like image 814
Shahar Wider Avatar asked Sep 26 '26 10:09

Shahar Wider


1 Answers

Thanks, Bob, I used dynamicLinkDomain instead of domainUriPrefix as mentioned in the documentation and it solved the issue

like image 92
Shahar Wider Avatar answered Sep 29 '26 15:09

Shahar Wider



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!