DEV Community

modydiop
modydiop

Posted on

API call failing when call from React Native, otherwise work fine in any other browser, server in our domain

  1. an API is deployed in IIS, in server dev1
  2. then API, in IIS is set to run with a Service Account MPLTS_svc_ad
  3. API get data from SQL server located in Server weh1
  4. Service account MPLTS_svc_ad is assigned a db_owner role in SQL server DB in weh1
  5. I am using VPN and remote desktop to log into dev 1 and weh1, all in the same network, domain= MPLTS
  6. My local machine name is GTMTW93
  7. API run to success when call from any browser, in both remote servers, including my local
  8. API is failing when call from with my React Native mobile application
  9. the error returned is: Login failed for user 'MPLTS\GTMTW93$'. Reason: Could not find a login matching the name provided. [CLIENT: ]

Any idea how to resolve this failure

Top comments (0)

Billboard image

Try REST API Generation for MS SQL Server.

DreamFactory generates live REST APIs from database schemas with standardized endpoints for tables, views, and procedures in OpenAPI format. We support on-prem deployment with firewall security and include RBAC for secure, granular security controls.

See more!

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay