API Troubleshooting

TABLE OF CONTENTS


Introduction

This article is a step-by-step guide to help developers and customers to debug and trouble shoot the issues and  resolve common issues in the Znode Apis (V1& V2). Ideal for teams working with .net core. It outlines into two main  sections one is for troubleshooting the issues and its history and another is for developers to debug the issue in a web store or Pagebuilder.


Troubleshooting & Debugging (App Development)

Client Issues History

Issue DescriptionError creating new Account via API
Error creating new Account via API
  •  The account creation flow has been updated to automatically associate new accounts with a portal, based on the store code provided in the API request.
Type of IssueCode issue
SolutionImplemented logic in the account creation API to automatically associate new accounts with the correct portal by using the storeCode provided in the request.


Issue DescriptionNewsLetter Clarification needed regarding the newly introduced Newsletter Feature and its implementation.
Troubleshooting or RCA DetailsA new API was developed to support the newsletter functionality. This API is responsible for retrieving newsletter subscriber data from the database.
Type of IssueFeature Implementation missing
Solution
  • Developed and configured a new API endpoint to fetch newsletter subscriber information from the database, enabling seamless integration with the newsletter system.


Issue Description Tag-based Blog Retrieval Issue
Troubleshooting or RCA DetailsStored procedure Znode_GetBlogNewsList was not returning Tags data, causing incomplete results for tag-based blog/news retrieval.
Type of IssueData issue -Stored Procedure Bug / Data Retrieval Issue
Solution
  • Updated Znode_GetBlogNewsList to include Tags column, enabling correct filtering of blog and news posts by tags.



Issue DescriptionError setting up user role via Znode API
Troubleshooting or RCA DetailsUser creation didn’t fully support account-code linkage or role handling, causing role assignment errors and incomplete user data.
Type of IssueMissing -API Enhancement / User Role Management
Solution
  • Added CreateCustomerByAccountCode method with B2B role validation, enhanced response details, updated AutoMapper, and conditional profile association.


Issue DescriptionMissing Authorization Key Results in 401 Error
Troubleshooting or RCA DetailsWhen the Authorization header is not included in the API request, the server returns a 401 Unauthorized status code with an error message indicating missing or invalid token credentials.
Type of IssueAuthentication / Security
Solution
  • Include a valid Authorization header in all API requests using Basic authentication:
  • Authorization: Basic <base64-encoded-credentials>
  • Example Authorization: Basic d3d3Lm15LXN0b3JlLmNvbXw1RDJCNEM1RS1EOEIzLTQ0ODgtOTA0RC02NDA5NDc2MkUxMzY=


Issue DescriptionRabbitMQ Connection Failure Causes Stale Data
Troubleshooting or RCA DetailsWhen the RabbitMQ connection is invalid or fails, the system cannot receive updated messages from the queue, leading to the use of outdated cached data and resulting in data inconsistency issues.
Type of IssueConnection Issue
Solution
  • Ensure the RabbitMQ connection string and credentials are correct and stable.

  • Implement retry mechanisms to handle temporary connection failures.

  • Set up monitoring to promptly detect RabbitMQ connection issues.

  • Enable automatic recovery to minimize downtime.



Issue DescriptionDatabase connection failure causing API downtime or errors.
Troubleshooting or RCA Details Incorrect connection strings or expired credentials lead to failed database connectivity.
Type of IssueData  issue: Database / Connectivity
SolutionVerify and update DB connection strings and credentials.
Log all connection errors.


Issue DescriptionAPI rejecting requests due to invalid or missing input data.
Troubleshooting or RCA Details Missing or malformed request parameters cause validation failures.
Type of IssueMissing Validation / Input
Solutionvalidate and sanitize inputs, enforce required fields, return clear errors, and log invalid requests.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.